Checking a machines yum exclude policy

by Karanbir Singh Email

Want a quick and easy way to check what the Excludes policy on a machine is ? Run this :

wget -q http://centos.karan.org/check_excludes.py -O - | python

It should give you some nice clean output, listing each repository enabled on the machine, along with the exclude setup for that repo. Something like this :

main: []
centos-base - ['perl', 'rsync']
centos-updates - ['perl', 'rsync']

Remember that the "main:" section in yum is the global system/repowide configs - anything listed there would be excluded from all repositories.

I needed it, but its Seth who wrote this snippet of code.

2 comments

Comment from: seth vidal [Visitor]
Not even a little credit? hrmph! :)
28/May/2009 @ 23:51
Comment from: Karanbir Singh [Member] Email · http://www.karan.org/
Its in there!
29/May/2009 @ 04:53

This post has 1 feedback awaiting moderation...

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)