Super User is a question and answer site for computer enthusiasts and power users. 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, 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.

share|improve this question
a similar question was answered on U&L – Tshepang Jul 28 '11 at 12:41

dpkg does not store the original copies of the config files separately, but you could download the .deb file and extract it to a temporary area with dpkg-deb, for example

$ dpkg-deb -x filename.deb /tmp

then compare the original versions in the unpacked tree under /tmp with the versions installed on the system, perhaps using a tool like diff.

share|improve this answer
thxs I'll give it a try By the way, is there a way to do this with aptitude instead of the .deb package? – Olivier Jul 27 '11 at 14:01
@Olivier: you can use aptitude download <packagename> to download the .deb file into the current directory automatically. You still need to unpack it though. – user89061 Jul 28 '11 at 14:49
yes I had this idea too but nothing automatic I'm afraid Thxs anyway – Olivier Jul 30 '11 at 13:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .