2

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

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
2

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.

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.