CentOS6 框:yum 删除 Percona-Server-shared-51 依赖项

CentOS6 框:yum 删除 Percona-Server-shared-51 依赖项

我想安装 Percona 5.7,但当我运行相关的 yum 命令时,它告诉我 57 与 Percona-Server-shared-51 冲突。我真的不知道我为什么要安装它,因为我也有 Percona-Server-shared-56。

rpm -qa | grep Percona

Percona-Server-client-56-5.6.30-rel76.3.el6.x86_64
Percona-Server-shared-51-5.1.73-rel14.12.625.rhel6.x86_64
Percona-Server-shared-56-5.6.30-rel76.3.el6.x86_64
Percona-Server-server-56-5.6.30-rel76.3.el6.x86_64

我可以轻松卸载 56 个版本,但仍然会遇到与 51 相同的冲突。

当我尝试删除它时,我遇到了这个问题:

yum remove Percona-Server-shared-51

Removing:
 Percona-Server-shared-51                 x86_64                 5.1.73-rel14.12.625.rhel6                   @percona-release-x86_64                                  5.9 M
Removing for dependencies:
 cronie                                   x86_64                 1.4.4-15.el6_7.1                            @updates                                                 174 k
 cronie-anacron                           x86_64                 1.4.4-15.el6_7.1                            @updates                                                  43 k
 crontabs                                 noarch                 1.10-33.el6                                 @anaconda-CentOS-201311291202.x86_64/6.5                 2.4 k
 munin                                    noarch                 2.0.25-11.el6                               @epel                                                    535 k
 munin-node                               noarch                 2.0.25-11.el6                               @epel                                                    1.3 M
 postfix                                  x86_64                 2:2.6.6-6.el6_7.1                           @updates                                                 9.7 M
 sysstat                                  x86_64                 9.0.4-31.el6                                @base                                                    826 k
 yum-cron                                 noarch                 3.2.29-73.el6.centos                        @base                                                     28 k

我可以继续吗?安装完 Percona 5.7 后再重新安装这些软件包,还是会遇到问题?我会丢失这些软件包当前设置的任何配置吗?

谢谢!

如果我卸载所有 56 个软件包,然后尝试安装 57 个服务器/客户端(非共享),我会得到以下输出:

yum install Percona-Server-server-57 Percona-Server-client-57

Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
epel/metalink                                                                                                                                        |  17 kB     00:00
 * base: centos.mirror.fr.planethoster.net
 * epel: mirrors.ircam.fr
 * extras: centos.quelquesmots.fr
 * ius: mirrors.ircam.fr
 * remi-safe: rpms.remirepo.net
 * updates: centos.mirror.fr.planethoster.net
base                                                                                                                                                 | 3.7 kB     00:00
epel                                                                                                                                                 | 4.3 kB     00:00
extras                                                                                                                                               | 3.4 kB     00:00
ius                                                                                                                                                  | 2.2 kB     00:00
nginx                                                                                                                                                | 2.9 kB     00:00
percona-release-noarch                                                                                                                               | 2.5 kB     00:00
percona-release-x86_64                                                                                                                               | 2.5 kB     00:00
remi-safe                                                                                                                                            | 2.9 kB     00:00
updates                                                                                                                                              | 3.4 kB     00:00
varnish-4.1                                                                                                                                          |  951 B     00:00
Resolving Dependencies
--> Running transaction check
---> Package Percona-Server-client-57.x86_64 0:5.7.12-5.1.el6 will be installed
--> Processing Dependency: Percona-Server-shared-57 for package: Percona-Server-client-57-5.7.12-5.1.el6.x86_64
---> Package Percona-Server-server-57.x86_64 0:5.7.12-5.1.el6 will be installed
--> Running transaction check
---> Package Percona-Server-shared-57.x86_64 0:5.7.12-5.1.el6 will be installed
--> Processing Conflict: Percona-Server-shared-51-5.1.73-rel14.12.625.rhel6.x86_64 conflicts mysql-libs
--> Finished Dependency Resolution
Error: Percona-Server-shared-51 conflicts with Percona-Server-shared-57-5.7.12-5.1.el6.x86_64
 You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
Percona-Server-shared-51-5.1.73-rel14.12.625.rhel6.x86_64 has installed conflicts mysql-libs: Percona-Server-shared-51-5.1.73-rel14.12.625.rhel6.x86_64

答案1

您应该保留 Percona-Server-shared-51。其余的可以卸载。

你只需要:

yum remove Percona-Server-client-56-\* Percona-Server-shared-56-\* Percona-Server-server-56-\*
yum install Percona-Server-server-57 Percona-Server-client-57

你可以通过以下命令查看依赖关系:

sudo yum deplist postfix|egrep -i "mysql|percona"

相关内容