阿里云服务器 centos7.6

a.查询mariadb-libs的包名

 rpm -qa |grep mariadb

b.卸载

rpm -e mariadb-libs-5.5.60-1.el7_5.x86_64

error:Failed dependencies:
    libmysqlclient.so.18()(64bit) is needed by (installed) postfix-2:2.10.1-7.el7.x86_64
    libmysqlclient.so.18(libmysqlclient_18)(64bit) is needed by (installed) postfix-2:2.10.1-7.el7.x86_64

postfix是mariadb的依赖包,先卸载它

a.查询postfix的包名

 rpm -qa |grep postfix

b.卸载

rpm -e postfix-2.10.1-7.el7.x86_64
 

error: Failed dependencies:
    /usr/sbin/sendmail is needed by (installed) redhat-lsb-core-4.1-27.el7.centos.1.x86_64

那我们接着查询 :rpm -qa |grep redhat-lsb
redhat-lsb-core-4.1-27.el7.centos.1.x86_64
redhat-lsb-submod-security-4.1-27.el7.centos.1.x86_64

卸载这两个再卸载postfix 再卸载mariadb

[root@iZ2zefj8x9bih185ymxnj7Z ~]# rpm -ev redhat-lsb-core-4.1-27.el7.centos.1.x86_64
Preparing packages...
redhat-lsb-core-4.1-27.el7.centos.1.x86_64
[root@iZ2zefj8x9bih185ymxnj7Z ~]# rpm -ev redhat-lsb-submod-security-4.1-27.el7.centos.1.x86_64
Preparing packages...
redhat-lsb-submod-security-4.1-27.el7.centos.1.x86_64
[root@iZ2zefj8x9bih185ymxnj7Z ~]#  rpm -ev postfix-2.10.1-7.el7.x86_64
Preparing packages...
postfix-2:2.10.1-7.el7.x86_64
[root@iZ2zefj8x9bih185ymxnj7Z ~]# rpm -ev mariadb-libs-5.5.60-1.el7_5.x86_64
Preparing packages...
mariadb-libs-1:5.5.60-1.el7_5.x86_64
 

完毕。

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐