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

推荐订阅源

Latest news
Latest news
Cisco Talos Blog
Cisco Talos Blog
Simon Willison's Weblog
Simon Willison's Weblog
N
News and Events Feed by Topic
Recent Commits to openclaw:main
Recent Commits to openclaw:main
S
Security Affairs
PCI Perspectives
PCI Perspectives
I
Intezer
V2EX - 技术
V2EX - 技术
S
Securelist
O
OpenAI News
S
Secure Thoughts
aimingoo的专栏
aimingoo的专栏
V
Visual Studio Blog
P
Proofpoint News Feed
月光博客
月光博客
博客园 - 叶小钗
Hacker News: Ask HN
Hacker News: Ask HN
有赞技术团队
有赞技术团队
酷 壳 – CoolShell
酷 壳 – CoolShell
Stack Overflow Blog
Stack Overflow Blog
宝玉的分享
宝玉的分享
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Google DeepMind News
Google DeepMind News
C
Cybersecurity and Infrastructure Security Agency CISA
H
Hackread – Cybersecurity News, Data Breaches, AI and More
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Schneier on Security
Schneier on Security
N
News | PayPal Newsroom
S
Schneier on Security
T
Threatpost
G
Google Developers Blog
P
Palo Alto Networks Blog
P
Privacy & Cybersecurity Law Blog
Microsoft Azure Blog
Microsoft Azure Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
C
Cyber Attacks, Cyber Crime and Cyber Security
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Privacy International News Feed
博客园 - 三生石上(FineUI控件)
Help Net Security
Help Net Security
Google Online Security Blog
Google Online Security Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
D
DataBreaches.Net
Cyberwarzone
Cyberwarzone
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Webroot Blog
Webroot Blog
K
Kaspersky official blog
Security Latest
Security Latest
www.infosecurity-magazine.com
www.infosecurity-magazine.com

博客园 - 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