** 发现 2 个已存在的 RPM 数据库问题, 'yum check' 输出如下:
perl-Git-1.8.3.1-14.el7_5.noarch 是 perl-Git-1.8.3.1-13.el7.noarch 的副本
perl-Git-1.8.3.1-14.el7_5.noarch 有缺少的需求 git = ('0', '1.8.3.1', '14.el7_5')
[wangshumin@CentOSNode3 ~]$ sudo yum remove perl-Git-1.8.3.1-14.el7_5.noarch
[wangshumin@CentOSNode3 ~]$ sudo yum install -y git
已加载插件:fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
* base: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
正在解决依赖关系
--> 正在检查事务
---> 软件包 git.x86_64.0.1.8.3.1-13.el7 将被 升级
--> 正在处理依赖关系 git = 1.8.3.1-13.el7,它被软件包 perl-Git-1.8.3.1-13.el7.noarch 需要
---> 软件包 git.x86_64.0.1.8.3.1-14.el7_5 将被 更新
--> 解决依赖关系完成
错误:软件包:perl-Git-1.8.3.1-13.el7.noarch (@base)
需要:git = 1.8.3.1-13.el7
正在删除: git-1.8.3.1-13.el7.x86_64 (@base)
git = 1.8.3.1-13.el7
更新,由: git-1.8.3.1-14.el7_5.x86_64 (updates)
git = 1.8.3.1-14.el7_5
您可以尝试添加 --skip-broken 选项来解决该问题
** 发现 2 个已存在的 RPM 数据库问题, 'yum check' 输出如下:
perl-Git-1.8.3.1-14.el7_5.noarch 是 perl-Git-1.8.3.1-13.el7.noarch 的副本
perl-Git-1.8.3.1-14.el7_5.noarch 有缺少的需求 git = ('0', '1.8.3.1', '14.el7_5')
[wangshumin@CentOSNode3 ~]$ sudo yum remove perl-Git-1.8.3.1-14.el7_5.noarch
已加载插件:fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
正在解决依赖关系
--> 正在检查事务
---> 软件包 perl-Git.noarch.0.1.8.3.1-14.el7_5 将被 删除
--> 解决依赖关系完成
依赖关系解决
=============================================================================================================================================================================================
Package 架构 版本 源 大小
=============================================================================================================================================================================================
正在删除:
perl-Git noarch 1.8.3.1-14.el7_5 installed 57 k
事务概要
=============================================================================================================================================================================================
移除 1 软件包
安装大小:57 k
是否继续?[y/N]:y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在删除 : perl-Git-1.8.3.1-14.el7_5.noarch 1/1
Loading mirror speeds from cached hostfile
* base: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
验证中 : perl-Git-1.8.3.1-14.el7_5.noarch 1/1
删除:
perl-Git.noarch 0:1.8.3.1-14.el7_5
完毕!
[wangshumin@CentOSNode3 ~]$ sudo yum install -y git
已加载插件:fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
* base: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
正在解决依赖关系
--> 正在检查事务
---> 软件包 git.x86_64.0.1.8.3.1-13.el7 将被 升级
--> 正在处理依赖关系 git = 1.8.3.1-13.el7,它被软件包 perl-Git-1.8.3.1-13.el7.noarch 需要
---> 软件包 git.x86_64.0.1.8.3.1-14.el7_5 将被 更新
--> 正在检查事务
---> 软件包 perl-Git.noarch.0.1.8.3.1-13.el7 将被 升级
---> 软件包 perl-Git.noarch.0.1.8.3.1-14.el7_5 将被 更新