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?

link|improve this question

feedback

1 Answer

up vote 0 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
    done
done

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

link|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
feedback

Your Answer

 
or
required, but never shown

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