Linux – yum-plugin-priorities: Which packages are excluded due to repository priority protections

linuxredhatyum

I am using multiple third party RPM repositories. Since these repos contain packages with conflicting names, I am experimenting with yum-plugin-priorities to sort out the confusion.

When I run yum check-update, I get a notice that 'N packages excluded due to repository priority protections`:

[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 excluded packages? Gosh, that's much more then I was expecting. Is there a quick way for me to check which packages are being excluded from considerations, just so that I can double check what yum is doing?

I tried --disableplugin=priorities, but it doesn't show me the excluded packages.

[root@host ~]# yum check-update --disableplugin=priorities
Loaded plugins: changelog, downloadonly, fastestmirror, security
Loading mirror speeds from cached hostfile
[root@host ~]#

Best Answer

It's easier than that :)

The excludes can be shown by using yum debuglevel. They can be seen from debuglevel 3 (debug levels range from 0 to 10)

yum update -d3

gives you the list.