YUM 尝试安装而不是更新 MySQL 包

YUM 尝试安装而不是更新 MySQL 包

我对 YUM Update 的安装和升级消息之间的区别存在疑问。

我有 2 台服务器,分别安装了 MySQL 5.6.25“服务器 A”和“服务器 B”。

当我运行命令时:

YUM update

我在服务器 A 上获得安装包选项:

Dependencies Resolved

================================================================================
 Package                   Arch      Version         Repository            Size
================================================================================
Installing:
 mysql-community-client    x86_64    5.6.28-2.el6    mysql56-community     18 M
     replacing  MySQL-client.x86_64 5.6.25-1.linux_glibc2.5
 mysql-community-devel     x86_64    5.6.28-2.el6    mysql56-community    3.3 M
     replacing  MySQL-devel.x86_64 5.6.25-1.linux_glibc2.5
 mysql-community-libs      x86_64    5.6.28-2.el6    mysql56-community    1.9 M
     replacing  MySQL-shared.x86_64 5.6.25-1.linux_glibc2.5
 mysql-community-server    x86_64    5.6.28-2.el6    mysql56-community     53 M
     replacing  MySQL-server.x86_64 5.6.25-1.linux_glibc2.5
Installing for dependencies:
 mysql-community-common    x86_64    5.6.28-2.el6    mysql56-community    307 k

Transaction Summary
================================================================================
Install       5 Package(s)

Total download size: 76 M
Is this ok [y/N]:

在服务器 B 中升级包选项:

Dependencies Resolved

================================================================================
 Package                      Arch    Version          Repository          Size
================================================================================
Updating:
 mysql-community-server       x86_64  5.6.28-2.el6     mysql56-community   53 M
Updating for dependencies:
 mysql-community-client       x86_64  5.6.28-2.el6     mysql56-community   18 M
 mysql-community-common       x86_64  5.6.28-2.el6     mysql56-community  307 k
 mysql-community-libs         x86_64  5.6.28-2.el6     mysql56-community  1.9 M
 mysql-community-libs-compat  x86_64  5.6.28-2.el6     mysql56-community  1.6 M

Transaction Summary
================================================================================
Upgrade       5 Package(s)

Total download size: 75 M
Is this ok [y/N]:

有什么不同?

答案1

我们需要查看完整的 yum 输出才能确定。服务器 A 和服务器 B 可能一开始就安装了不同的软件包。服务器 A 中的软件包使用的名称已被替换为新名称,而服务器 B 中的软件包与当前名称匹配。

相关内容