在安装oracle数据库时,缺少rpm包,但是在rpm -ivh 安装时,会报错
- [root@node1 Server]# rpm -ivh elfutils-libelf-devel-0.125-3.el5.i386.rpm
- warning: elfutils-libelf-devel-0.125-3.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
- error: Failed dependencies:
- elfutils-libelf-devel-static = 0.125-3.el5 is needed by elfutils-libelf-devel-0.125-3.el5.i386
- elfutils-libelf-devel > 0.125-3.el5 conflicts with elfutils-libelf-0.125-3.el5.i386
在rpm -ivh后面加入 --force --nodeps 来忽略软件包及文件的冲突,不验证套件依赖性,运行如下:
- [root@node1 Server]# rpm -ivh gcc-c++-4.1.2-42.el5.i386.rpm --force --nodeps
- warning: gcc-c++-4.1.2-42.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
- Preparing... ########################################### [100%]
- 1:gcc-c++ ########################################### [100%]
- [root@node1 Server]# rpm -ivh sysstat-7.0.2-1.el5.i386.rpm --force --nodeps
- warning: sysstat-7.0.2-1.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
- Preparing... ########################################### [100%]
- 1:sysstat ########################################### [100%]
- [root@node1 Server]# rpm -ivh libgomp-4.1.2-42.el5.i386.rpm --force --nodeps
- warning: libgomp-4.1.2-42.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
- Preparing... ########################################### [100%]
- 1:libgomp ########################################### [100%]
- [root@node1 Server]# rpm -ivh libgcc-4.1.2-42.el5.i386.rpm --force --nodeps
- warning: libgcc-4.1.2-42.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
- Preparing... ########################################### [100%]
- 1:libgcc ########################################### [100%]
该命令使用简单,但是每每使用时,就记不住,rpm -help还没有解释,特此记录,已被后查!
本文转自 hsbxxl 51CTO博客,原文链接:http://blog.51cto.com/hsbxxl/813663,如需转载请自行联系原作者