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?

1 Answer 1


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...

  • 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, 2011 at 15:57
  • 2016 and i have the same question. @Martian, could you write a yum plugin to do this?
    – Jayen
    Jan 1, 2016 at 3:49
  • How do I "cache" an rpm?
    – Jayen
    Jan 1, 2016 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, 2016 at 14:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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