Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

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

Your Answer

 
discard

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.