我正在使用多个第三方RPM存储库。 由于这些回购包含名称相互冲突的软件包,因此我正在尝试使用yum-plugin-priorities来排除混淆。
当我运行yum check-update ,我得到一个通知,“由于存储库优先级保护而排除了N个包”:
[root@host ~]# yum check-update Loaded plugins: changelog, downloadonly, fastestmirror, priorities, security Loading mirror speeds from cached hostfile 3941 packages excluded due to repository priority protections [root@host ~]#
3941排除包裹 ? 天哪,那更是我期待的。 有没有一个快速的方法来检查哪些软件包被排除在考虑之外,这样我就可以仔细检查yum在做什么?
我试过--disableplugin=priorities ,但它不显示排除的软件包。
[root@host ~]# yum check-update --disableplugin=priorities Loaded plugins: changelog, downloadonly, fastestmirror, security Loading mirror speeds from cached hostfile [root@host ~]#
比这更容易:)
排除可以通过使用yumdebugging级别来显示。 它们可以从debugging级别3(debugging级别从0到10)
yum update -d3
给你的名单。
我不确定是否有快速或内置的方法来列出它不包含的内容,但如果您不介意潜入一些代码,则可以find所需的内容。
该插件应位于:
/usr/lib/yum-plugins/priorities.py
function:
config_hook(conduit)
当它到达封装排除插槽时将由yum执行。
代码相对简单,只需在适当的位置插入打印语句即可获得更多信息。 更具体地说,每当你看到
conduit.delPackage(po)
这意味着一个包被排除在外。 只需插入一个
print po
在上面的行中获取包的string输出。