redhat的包管理怎么都比apt要差些,有时候会被他的依赖弄得想杀人了.....
你安装一个包,结果他告诉你依赖另外一个包,再安装那个包,又是依赖下一个.....
特别当产生循环依赖的情况下,很让人郁闷,如下:
libselinux-1.33.4-5.5.el5.i386.rpm
libselinux-devel-1.33.4-5.5.el5.i386.rpm
libselinux-python-1.33.4-5.5.el5.i386.rpm
[root@beijing-shiji-ppvod-cacti-31 ~]# rpm -Uvh libselinux-1.33.4-5.5.el5.i386.rpm
warning: libselinux-1.33.4-5.5.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
libselinux = 1.30.29-2 is needed by (installed) libselinux-python-1.30.29-2.i386
libselinux = 1.30.29-2 is needed by (installed) libselinux-devel-1.30.29-2.i386
[root@beijing-shiji-ppvod-cacti-31 ~]# rpm -Uvh libselinux-devel-1.33.4-5.5.el5.i386.rpm
warning: libselinux-devel-1.33.4-5.5.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
libselinux = 1.33.4-5.5.el5 is needed by libselinux-devel-1.33.4-5.5.el5.i386
但是如果我们把产生循环依赖的几个包放一起,然后加上 --aid参数就可以解决这个问题:
[root@beijing-shiji-ppvod-cacti-31 ~]# rpm -Uvh libselinux-* --aid
warning: libselinux-1.33.4-5.5.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
1:libselinux ########################################### [ 25%]
阅读(1514) | 评论(0) | 转发(0) |