惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

G
GRAHAM CLULEY
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
Last Week in AI
Last Week in AI
P
Privacy & Cybersecurity Law Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
博客园 - Franky
Spread Privacy
Spread Privacy
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Project Zero
Project Zero
Engineering at Meta
Engineering at Meta
The Hacker News
The Hacker News
Stack Overflow Blog
Stack Overflow Blog
N
Netflix TechBlog - Medium
A
Arctic Wolf
Cisco Talos Blog
Cisco Talos Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Application and Cybersecurity Blog
Application and Cybersecurity Blog
T
Threat Research - Cisco Blogs
Recorded Future
Recorded Future
Latest news
Latest news
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
C
CERT Recently Published Vulnerability Notes
美团技术团队
C
CXSECURITY Database RSS Feed - CXSecurity.com
O
OpenAI News
N
News and Events Feed by Topic
MyScale Blog
MyScale Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
B
Blog RSS Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Threatpost
T
The Blog of Author Tim Ferriss
L
LINUX DO - 最新话题
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
S
Securelist
Microsoft Azure Blog
Microsoft Azure Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Secure Thoughts
罗磊的独立博客
P
Proofpoint News Feed
T
The Exploit Database - CXSecurity.com
Apple Machine Learning Research
Apple Machine Learning Research
Cloudbric
Cloudbric
G
Google Developers Blog

博客园 - Jeet

[转]TFS.VisualStudio.com TF30063: You are not authorized to access Collection 使用ODP.NET连接Oracle数据库一个OracleCommand运行多条SQL语句的方法 删除SQL数据库中所有的表 LoadLibrary返回值为0 解决64位平台上的"BadImageFormatException was unhandled" Post-Build event不能注册到全局缓存解决办法 Oracle相关博客转移 使用Outlook 2010,拖拽大于20M附件发生“附件大小超过了允许的范围”提示的解决方法 WIN7下丢失的光驱解决办法:由于其配置信息不完整或已损坏,Windows 无法启动这个硬件设备 Use OpenLDAP as security provider in Oracle UCM 11g Using WSDLs in UCM 11g like you did in 10g 在64位Windows 7上安装Oracle UCM 10gR3 VS2008加Visio for Enterprise Architects安装方法 The Definitive Guide to Stellent Content Server Development ORACLE 10G EM错误解决 - Jeet PMP证书续期换证操作 玩儿条形码之条码打印 Vista下附加Sql Server数据库报5123的错误 - Jeet - 博客园 玩儿条形码之从DOS打印到USB打印机端口
解决RedHat AS5 RPM安装包依赖问题
Jeet · 2010-11-04 · via 博客园 - Jeet

想在公司的服务器上安装OpenLDAP,安装RPM包时报了一堆的依赖包错误,因为是在公网的虚拟机上,不想费那么大的劲去拷贝安装RPM包,决定直接从映射光盘上通过建立YUM仓库解决。

步骤如下:

1、挂载光驱

# mount –o loop /dev/sdc /mnt

2、安装建立仓库工具

# rpm –ivh /mnt/Server/createrepo-0.4.4-2.fc6.noarch.rpm

3、创建包仓库文件夹,并建立仓库

# mkdir /var/RHEL5

# cd /var/RHEL5

# createrepo .

4、配置YUM客户端

# vi /etc/yum.repos.d/server.repo

[RHEL Repository]

name=RedHat Linux Linux

baseurl=file:///mnt/Server

enabled=1

gpgcheck=0

保存退出

5、进行RPM包的安装

# yum install RPM包名

在我安装时,报一个warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 37017186的错误,按道理已经在配置文件里指定不检查KEY,听说是RHEL的一个bugs,不理这么多,直接绕过,用# yum install --nogpgcheck RPM包名实现RPM包的安装。

利用YUM安装的方式,可以实现安装RPM包时自动把相关的依赖包给装上。

附:

YUM简单使用:
安装:
yum install RPM包的名称
删除:
yum remove RPM包的名称
搜索:
yum search  RPM包的名称
显示仓库所有文件:
yum list
显示安装包详细说明信息:
yum info  RPM包的名称
更新安装:
yum update  RPM包的名称
清楚服务器仓库缓存等:
yum clean all
本地安装:
yum localinstall  /路径/RPM包的名称
本地更新:
yum localupdate /路径/RPM包的名称
显示安装包所安装的文件列表:
yum provides  RPM包的名称
反查文件所属安装包:
yum whatprovides  /路径/文件
注:
若安装时需要安装到指定的文件夹,则需要 --installroot
举例:
       yum install --installroot=/mnt  vim