卸载旧版本的rpm包并进行新包的编译安装.
第一次用--nodeps来卸载,出现error: specifies multiple packages错误,于是再加一个--allmatches这下可以成功卸载了.
[root@localhost courier-imap-4.1.0]# rpm -qa | grep cyrus-sasl | xargs rpm -e --nodeps
error: "cyrus-sasl-lib-2.1.22-5.el5_4.3" specifies multiple packages
error: "cyrus-sasl-lib-2.1.22-5.el5_4.3" specifies multiple packages
error: "cyrus-sasl-plain-2.1.22-5.el5_4.3" specifies multiple packages
error: "cyrus-sasl-plain-2.1.22-5.el5_4.3" specifies multiple packages
[root@localhost courier-imap-4.1.0]# rpm -qa | grep cyrus-sasl | xargs rpm -e -nodeps
-nodeps: unknown option
[root@localhost courier-imap-4.1.0]# rpm -qa | grep cyrus-sasl | xargs rpm -e --allmatches
error: Failed dependencies:
libsasl2.so.2()(64bit) is needed by (installed) openldap-2.3.43-12.el5.x86_64
libsasl2.so.2()(64bit) is needed by (installed) autofs-5.0.1-0.rc2.143.el5.x86_64
libsasl2.so.2()(64bit) is needed by (installed) sendmail-8.13.8-8.el5.x86_64
libsasl2.so.2 is needed by (installed) openldap-2.3.43-12.el5.i386
/usr/sbin/saslauthd is needed by (installed) sendmail-8.13.8-8.el5.x86_64
[root@localhost courier-imap-4.1.0]# rpm -qa | grep cyrus-sasl | xargs rpm -e --allmatches --nodeps
好了,卸载成功!
转载于:https://blog.51cto.com/liucb/698790