Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

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

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

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.