AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 782692
Accepted
Codemonkey
Codemonkey
Asked: 2016-06-09 04:20:55 +0800 CST2016-06-09 04:20:55 +0800 CST 2016-06-09 04:20:55 +0800 CST

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

  • 772

我想安装 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
centos yum centos6 percona
  • 1 1 个回答
  • 2610 Views

1 个回答

  • Voted
  1. Best Answer
    Mircea Vutcovici
    2016-06-09T04:39:02+08:002016-06-09T04:39:02+08:00

    你应该保留 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"
    
    • 1

相关问题

  • 如何在 Linux 机器上找到有关硬件的详细信息?

  • 使用 crontab 和 /etc/cron.hourly,daily,weekly 的区别

  • 持续监控许多服务器运行状况的简单方法?

  • Hudson 无法在 tomcat5 中启动

  • CentOS 的依赖挑战

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve