今天在阿里云新建了一个测试机器centos7.6,用来安装mysql做测试,需要先卸载mariadb,遇到了以下的报错,应该很多同学都有遇到这样的错误,简单记录下卸载过程。
- 查看机器是否安装Mariadb
[root@test data]# rpm -qa |grep mariadb
mariadb-libs-5.5.60-1.el7_5.x86_64
- 卸载mariadb出现如下报错
[root@test data]# 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-2:2.10.1-7.el7.x86_64
卸载postfix-2:2.10.1-7.el7.x86_64 又出现error
[root@test data]# rpm -e postfix-2: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
- 卸载postfix-2:2.10.1-7.el7.x86_64依赖
rpm -e redhat-lsb-core-4.1-27.el7.centos.1.x86_64
- 卸载postfix-2:2.10.1-7.el7.x86_64
rpm -e postfix-2:2.10.1-7.el7.x86_64
- 卸载rpm -e mariadb-libs-5.5.60-1.el7_5.x86_64
rpm -e mariadb-libs-5.5.60-1.el7_5.x86_64
- 查看mariadb是否已经卸载完成
rpm -qa |grep mariadb
网友评论