up vote 3 down vote favorite
5
share [g+] share [fb]

How to find all Debian managed configuration files which have been changed from the default?

link|improve this question
1  
The question goes here. The answer goes below. – Dennis Williamson Dec 2 '09 at 22:29
I moved the answer you provided into your answer. – Zoredache Dec 2 '09 at 22:44
feedback

2 Answers

To find all Debian managed configuration files which have been changed from the default you can use a command like this.

dpkg-query -W -f='${Conffiles}\n' '*' | awk 'OFS="  "{print $2,$1}' | md5sum -c 2>/dev/null | awk -F': ' '$2 !~ /OK/{print $1}'
link|improve this answer
Works like charm on Ubuntu 10.4, I would upvote you a thousand times:-) – Ludwig Weinzierl May 2 '10 at 19:30
feedback

I generally like to setup etckeeper on the system pretty much immediately. With something like etckeeper I can find not only when the file is different, but I can actually get a diff of exactly how it is different.

See:

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.