Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I view the changes made to package configuration files (installed using rpm/yum)?

I created a FreeRadius server that does MAC Authentication, and I just want to get the lines that I have modified that are different than the default installation. Do I have to install the RPM into a chroot, or is there a yum or rpm command that can be used to find this information?

share|improve this question
up vote 2 down vote accepted

I am afraid rpm -V + rpmpeek is the best you'll get.

If you have your rpms cached, you could try something like:

for RPM in $RPMS; do
    for FILE in `rpm -V $RPM | sed -e 's+^[^/]*++'` | grep '^/etc/'; do
        rpmpeek $RPM diff $FILE .$FILE

I am looking for something similar and so far have not found anything better...

share|improve this answer
Well, this is a bit old, and I'm not worried about this anymore. I'll assume your answer is correct, thanks for the help. – bradlis7 Nov 28 '11 at 15:57
2016 and i have the same question. @Martian, could you write a yum plugin to do this? – Jayen Jan 1 at 3:49
How do I "cache" an rpm? – Jayen Jan 1 at 3:49
keepcache in yum.conf (or dnf.conf). the packages are kept in /var/cache/yum (or dnf). Alternatively one can use etckeeper to keep track of all config changes. – Martian Mar 11 at 14:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.