当前位置: 技术问答>linux和unix
RPM安装问题
来源: 互联网 发布时间:2016-09-07
本文导语: 在安装RPM包的时候总是报错,需要另外三个rpm,但是这个已经在那个目录里面了,期待高手解决,谢谢 列出名称: [root@test rpms47]# ls -l total 31168 -rw-r--r-- 1 root root 0 Jul 3 19:55 = -rw-r--r-- 1 root ro...
在安装RPM包的时候总是报错,需要另外三个rpm,但是这个已经在那个目录里面了,期待高手解决,谢谢
列出名称:
[root@test rpms47]# ls -l
total 31168
-rw-r--r-- 1 root root 0 Jul 3 19:55 =
-rw-r--r-- 1 root root 827073 Jul 3 19:32 alsa-lib-devel-1.0.6-5.RHEL4.i386.rpm
-rw-r--r-- 1 root root 84020 Jul 3 19:32 audiofile-devel-0.2.6-1.el4.1.i386.rpm
-rw-r--r-- 1 root root 29962 Jul 3 19:32 esound-devel-0.2.35-2.i386.rpm
-rw-r--r-- 1 root root 238420 Jul 3 19:32 fontconfig-devel-2.2.3-13.el4.i386.rpm
-rw-r--r-- 1 root root 546120 Jul 3 19:32 freetype-devel-2.1.9-8.el4.6.i386.rpm
-rw-r--r-- 1 root root 958972 Jul 3 19:32 glib2-devel-2.4.7-1.i386.rpm
-rw-r--r-- 1 root root 1000742 Jul 3 19:36 gnome-libs-1.4.1.2.90-44.1.i386.rpm
-rw-r--r-- 1 root root 1167196 Jul 3 19:32 gnome-libs-devel-1.4.1.2.90-44.1.i386.rpm
-rw-r--r-- 1 root root 1133114 Jul 3 19:32 gtk+-devel-1.2.10-36.i386.rpm
-rw-r--r-- 1 root root 240960 Jul 3 19:32 imlib-devel-1.9.13-23.i386.rpm
-rw-r--r-- 1 root root 79559 Jul 3 19:32 libacl-devel-2.2.23-5.4.el4.i386.rpm
-rw-r--r-- 1 root root 18712 Jul 3 19:32 libaio-0.3.105-2.i386.rpm
-rw-r--r-- 1 root root 172665 Jul 3 19:32 libjpeg-devel-6b-33.i386.rpm
-rw-r--r-- 1 root root 822967 Jul 3 19:32 libtiff-devel-3.6.1-12.i386.rpm
-rw-r--r-- 1 root root 109689 Jul 3 19:32 libungif-devel-4.1.3-1.el4.2.i386.rpm
-rw-r--r-- 1 root root 1014952 Jul 3 19:32 openmotif21-2.1.30-11.RHEL4.6.i386.rpm
-rw-r--r-- 1 root root 365526 Jul 3 19:32 ORBit2-devel-2.12.0-3.i386.rpm
-rw-r--r-- 1 root root 13839285 Jul 3 19:32 xorg-x11-6.8.2-1.EL.52.i386.rpm
-rw-r--r-- 1 root root 282396 Jul 3 19:32 xorg-x11-deprecated-libs-6.8.2-1.EL.52.i386.rpm
-rw-r--r-- 1 root root 290315 Jul 3 19:32 xorg-x11-deprecated-libs-devel-6.8.2-1.EL.52.i386.rpm
-rw-r--r-- 1 root root 5386870 Jul 3 19:32 xorg-x11-devel-6.8.2-1.EL.52.i386.rpm
-rw-r--r-- 1 root root 2818111 Jul 3 19:32 xorg-x11-libs-6.8.2-1.EL.52.i386.rpm
-rw-r--r-- 1 root root 332320 Jul 3 19:32 xorg-x11-xfs-6.8.2-1.EL.52.i386.rpm
[root@test rpms47]# rpm -ivh *.rpm
warning: alsa-lib-devel-1.0.6-5.RHEL4.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
error: Failed dependencies:
ORBit-devel is needed by gnome-libs-devel-1.4.1.2.90-44.1.i386
glib-devel is needed by gtk+-devel-1.2.10-36.i386
libIDL-devel >= 0.8.2-1 is needed by ORBit2-devel-2.12.0-3.i386 Suggested resolutions:
/home/buildcentos/CENTOS/en/4.0/i386/CentOS/RPMS/ORBit-devel-0.5.17-14.i386.rpm
/home/buildcentos/CENTOS/en/4.0/i386/CentOS/RPMS/glib-devel-1.2.10-15.i386.rpm
/home/buildcentos/CENTOS/en/4.0/i386/CentOS/RPMS/libIDL-devel-0.8.4-1.centos4.i386.rpm
[root@test rpms47]#
列出名称:
[root@test rpms47]# ls -l
total 31168
-rw-r--r-- 1 root root 0 Jul 3 19:55 =
-rw-r--r-- 1 root root 827073 Jul 3 19:32 alsa-lib-devel-1.0.6-5.RHEL4.i386.rpm
-rw-r--r-- 1 root root 84020 Jul 3 19:32 audiofile-devel-0.2.6-1.el4.1.i386.rpm
-rw-r--r-- 1 root root 29962 Jul 3 19:32 esound-devel-0.2.35-2.i386.rpm
-rw-r--r-- 1 root root 238420 Jul 3 19:32 fontconfig-devel-2.2.3-13.el4.i386.rpm
-rw-r--r-- 1 root root 546120 Jul 3 19:32 freetype-devel-2.1.9-8.el4.6.i386.rpm
-rw-r--r-- 1 root root 958972 Jul 3 19:32 glib2-devel-2.4.7-1.i386.rpm
-rw-r--r-- 1 root root 1000742 Jul 3 19:36 gnome-libs-1.4.1.2.90-44.1.i386.rpm
-rw-r--r-- 1 root root 1167196 Jul 3 19:32 gnome-libs-devel-1.4.1.2.90-44.1.i386.rpm
-rw-r--r-- 1 root root 1133114 Jul 3 19:32 gtk+-devel-1.2.10-36.i386.rpm
-rw-r--r-- 1 root root 240960 Jul 3 19:32 imlib-devel-1.9.13-23.i386.rpm
-rw-r--r-- 1 root root 79559 Jul 3 19:32 libacl-devel-2.2.23-5.4.el4.i386.rpm
-rw-r--r-- 1 root root 18712 Jul 3 19:32 libaio-0.3.105-2.i386.rpm
-rw-r--r-- 1 root root 172665 Jul 3 19:32 libjpeg-devel-6b-33.i386.rpm
-rw-r--r-- 1 root root 822967 Jul 3 19:32 libtiff-devel-3.6.1-12.i386.rpm
-rw-r--r-- 1 root root 109689 Jul 3 19:32 libungif-devel-4.1.3-1.el4.2.i386.rpm
-rw-r--r-- 1 root root 1014952 Jul 3 19:32 openmotif21-2.1.30-11.RHEL4.6.i386.rpm
-rw-r--r-- 1 root root 365526 Jul 3 19:32 ORBit2-devel-2.12.0-3.i386.rpm
-rw-r--r-- 1 root root 13839285 Jul 3 19:32 xorg-x11-6.8.2-1.EL.52.i386.rpm
-rw-r--r-- 1 root root 282396 Jul 3 19:32 xorg-x11-deprecated-libs-6.8.2-1.EL.52.i386.rpm
-rw-r--r-- 1 root root 290315 Jul 3 19:32 xorg-x11-deprecated-libs-devel-6.8.2-1.EL.52.i386.rpm
-rw-r--r-- 1 root root 5386870 Jul 3 19:32 xorg-x11-devel-6.8.2-1.EL.52.i386.rpm
-rw-r--r-- 1 root root 2818111 Jul 3 19:32 xorg-x11-libs-6.8.2-1.EL.52.i386.rpm
-rw-r--r-- 1 root root 332320 Jul 3 19:32 xorg-x11-xfs-6.8.2-1.EL.52.i386.rpm
[root@test rpms47]# rpm -ivh *.rpm
warning: alsa-lib-devel-1.0.6-5.RHEL4.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
error: Failed dependencies:
ORBit-devel is needed by gnome-libs-devel-1.4.1.2.90-44.1.i386
glib-devel is needed by gtk+-devel-1.2.10-36.i386
libIDL-devel >= 0.8.2-1 is needed by ORBit2-devel-2.12.0-3.i386 Suggested resolutions:
/home/buildcentos/CENTOS/en/4.0/i386/CentOS/RPMS/ORBit-devel-0.5.17-14.i386.rpm
/home/buildcentos/CENTOS/en/4.0/i386/CentOS/RPMS/glib-devel-1.2.10-15.i386.rpm
/home/buildcentos/CENTOS/en/4.0/i386/CentOS/RPMS/libIDL-devel-0.8.4-1.centos4.i386.rpm
[root@test rpms47]#
|
rpm -ivh *.rpm
你要把这个目录下的rpm包全装了?
依赖什么包就安装什么包
要不试试
rpm -ivh --sid *.rpm
最坏做法
rpm -ivh --nodeps *.rpm
如果可以用yum
用yum安装也很方便啊
你要把这个目录下的rpm包全装了?
依赖什么包就安装什么包
要不试试
rpm -ivh --sid *.rpm
最坏做法
rpm -ivh --nodeps *.rpm
如果可以用yum
用yum安装也很方便啊
|
rpm安装 本来就有这样的问题
缺少什么包 你就得先安装什么包
要是用--nodeps选项强制安装的话 安装之后不好用 或者功能不全的情况可能发生
缺少什么包 你就得先安装什么包
要是用--nodeps选项强制安装的话 安装之后不好用 或者功能不全的情况可能发生
|
需求包之间有依赖关系的哈。感觉直接nodeps装多少会有点问题,lz好运……