Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'd like to compare the actual config files for, let's say, Apache and the ones provided in the original package.

The purpose is to have a list of modifications since initial installation because I didn't document them originally.

I've cruised along dpkg man pages with no success.

Thxs for help Olivier

share|improve this question

migrated from stackoverflow.com Aug 7 '11 at 9:07

This question came from our site for professional and enthusiast programmers.

    
I have been looking for tool to do this but I think one does not exist currently. Thus it has to be done manually. If you write a tool for this, please publish it! –  snap Aug 7 '11 at 10:40
    
You could start with dpkg -x (extract the original package to temporary directory) and then diff the conffiles. –  sendmoreinfo Feb 2 '12 at 20:36
add comment

1 Answer 1

The file /var/lib/dpkg/info/apache2.conffiles contains a list of the configuration files shipped with the package. Some of them might be generated by a postinst rather than included in the .deb so you will need to compare against a clean install on a different computer, in the general case. Also look out for conf directories containing new files not included in the package. While looking around, also peek into the other apache2.* files in /var/lib/dpkg/info.

share|improve this answer
add comment

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.