CentOS6框:yum删除Percona-Server-shared-51的依赖关系

我想安装Percona 5.7,但是当我运行相关的yum命令时,它告诉我与Percona-Server-shared-51有57次冲突。 我真的不知道为什么我安装了,因为我也有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后重新安装这些软件包,否则会遇到问题? 我会失去这些软件包当前设置的configuration吗?

谢谢!

如果我卸载所有的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 

你应该保持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"