centos 自带mysql卸载时出现无法卸载情况

[dianyi@localhost ~]$ rpm -qa|grep mysql
mysql-libs-5.1.52-1.el6_0.1.x86_64
[dianyi@localhost ~]$ rpm -e mysql-libs-5.1.52-1.el6_0.1.x86_64
error: Failed dependencies:
        libmysqlclient.so.16()(64bit) is needed by (installed) postfix-2:2.6.6-2.2.el6_1.x86_64
        libmysqlclient.so.16(libmysqlclient_16)(64bit) is needed by (installed) postfix-2:2.6.6-2.2.el6_1.x86_64
        mysql-libs is needed by (installed) postfix-2:2.6.6-2.2.el6_1.x86_64
[dianyi@localhost ~]$ rpm -e postfix-2:2.6.6-2.2.el6_1.x86_64
error: package postfix-2:2.6.6-2.2.el6_1.x86_64 is not installed

 

解决办法:

 

rpm -e --nodeps mysql-libs-5.1.52-1.el6_0.1.x86_64
posted on 2013-07-16 09:59  kkmm  阅读(1100)  评论(0编辑  收藏  举报