我有自己的 yum rpm 存储库,但我遇到了一个包的问题 - yum 表示它看到了依赖项,但它决定不安装其中一个,没有显示任何错误消息。yum 输出中巧妙地捕捉到了问题(“stomppy”是问题依赖项)
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package lrms-skippy.noarch 0:1a.5.0-1 will be installed
--> Processing Dependency: elementtree for package: lrms-skippy-1a.5.0-1.noarch
--> Processing Dependency: stomppy for package: lrms-skippy-1a.5.0-1.noarch
--> Running transaction check
---> Package elementtree.noarch 0:1.2.6-1 will be installed
--> Finished Dependency Resolution
如您所见,yum 知道“lrms-skippy”同时依赖于 stomppy 和 elementtree,但只想安装elementree。这些都是我自己编写的规范文件。“lrms-skippy”的依赖声明如下:
Requires: python, lrms-stomppy, lrms-elementtree
以防 stomppy 包已经安装,我尝试删除它:
[root@centos_6 ~]# yum remove lrms-stomppy
Loaded plugins: fastestmirror, presto
Setting up Remove Process
No Match for argument: lrms-stomppy
Loading mirror speeds from cached hostfile
* base: centos-mirror.jchost.net
* extras: yum.phx.singlehop.com
* updates: mirror.us.leaseweb.net
Package(s) lrms-stomppy available, but not installed.
No Packages marked for removal
如您所见,该软件包可用但未安装。
那么,为什么 yum 会以这种方式表现 - 只是决定不安装依赖项而没有任何错误或解释?百胜版本 3.2.29。谢谢阅读!