解决安装RPM包时循环依赖的问题

在RHEL上安装RPM包时,可能会遇到循环依赖的问题,例如:RPM包1依赖于包2,包2依赖于包3,包3又依赖于包1,好像就没办法装下去了。下面就是一例:

[root@RHEL rpm]# rpm -ivh mesa-libGL-devel-6.5.1-7.7.el5.x86_64.rpm 

warning: mesa-libGL-devel-6.5.1-7.7.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186

error: Failed dependencies:


        libX11-devel is needed by mesa-libGL-devel-6.5.1-7.7.el5.x86_64

[root@RHEL rpm]# rpm -ivh libX11-devel-1.0.3-9.el5.x86_64.rpm 

warning: libX11-devel-1.0.3-9.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186

error: Failed dependencies:

        libXdmcp-devel is needed by libX11-devel-1.0.3-9.el5.x86_64

        xorg-x11-proto-devel >= 7.1-2 is needed by libX11-devel-1.0.3-9.el5.x86_64

[root@RHEL rpm]# rpm -ivh libXdmcp-devel-1.0.1-2.1.x86_64.rpm 

warning: libXdmcp-devel-1.0.1-2.1.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186

error: Failed dependencies:

        xorg-x11-proto-devel is needed by libXdmcp-devel-1.0.1-2.1.x86_64

You have new mail in /var/spool/mail/root

[root@RHEL rpm]# rpm -ivh xorg-x11-proto-devel-7.1-9.fc6.x86_64.rpm 

warning: xorg-x11-proto-devel-7.1-9.fc6.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186

error: Failed dependencies:

        mesa-libGL-devel is needed by xorg-x11-proto-devel-7.1-9.fc6.x86_64

[root@RHEL rpm]# rpm -ivh mesa-libGL-devel-6.5.1-7.7.el5.x86_64.rpm 

warning: mesa-libGL-devel-6.5.1-7.7.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186

error: Failed dependencies:

        libX11-devel is needed by mesa-libGL-devel-6.5.1-7.7.el5.x86_64

这个时候,把这些包一起安装就好了:

rpm -ivh mesa-libGL-devel-6.5.1-7.7.el5.x86_64.rpm libX11-devel-1.0.3-9.el5.x86_64.rpm libXdmcp-devel-1.0.1-2.1.x86_64.rpm xorg-x11-proto-devel-7.1-9.fc6.x86_64.rpm mesa-libGL-devel-6.5.1-7.7.el5.x86_64.rpm

有人说要加上--aid的参数,我没加也可以通过。

转载自:https://blog.csdn.net/sinat_22815613/article/details/53177223

你可能感兴趣的:(解决安装RPM包时循环依赖的问题)