最近,为了从RPM文件中安装一个新版本,我删除了一些MariaDB包。
yum remove mariadb mariadb-server mariadb-libs作为过程的一部分,yum还删除了MySQL-python包。为什么要这么做?我在网上搜索,查看哪个MariaDB包将MySQL-python作为依赖项,但无法明确定位这些信息。
Command Line : remove mariadb mariadb-server mariadb-libs
Transaction performed with:
Installed rpm-4.11.3-25.el7.x86_64 @base
Installed yum-3.4.3-154.el7.centos.1.noarch @updates
Installed yum-plugin-fastestmirror-1.1.31-42.el7.noarch @base
Packages Altered:
Erase MySQL-python-1.2.5-1.el7.x86_64 @G****
Erase mariadb-1:5.5.56-2.el7.x86_64 @base
Erase mariadb-libs-1:5.5.56-2.el7.x86_64 @base
Erase mariadb-server-1:5.5.56-2.el7.x86_64 @base
Erase net-snmp-1:5.7.2-28.el7_4.1.x86_64 @G*****
Erase perl-DBD-MySQL-4.023-5.el7.x86_64 @base我确实重新安装了MySQL-python包,但是当用yum安装时,它说它没有依赖项。
发布于 2018-02-27 11:42:59
MySQL-python (和perl-DBD-MySQL)很可能将MariaDB客户端库作为依赖项。没有MySQL/MariaDB客户端库,这些包是无用的(不可用)。
我不能测试这个,但是再次安装MySQL-python可能至少会重新安装mariadb-libs。
https://unix.stackexchange.com/questions/426910
复制相似问题