Re: How to make an upgraded system clean by automatically removing abandoned config files?
On Fri, Jan 14, 2011 at 06:49:12PM -0500, Andrew Engelbrecht wrote:
>
> > Selective use of the "cruft" program will help you clean up an existing
> > system. It compares the list of normal files and conffiles for installed
> > packages against the file system and reports extras--cruft.
>
> The concept fits the bill. :) Unfortunately, I tried it out and there
> were too many files listed. (~13k). I don't know enough about a healthy
> GNU/Linux environment to pass judgment on virtually any of them without
> doing research on each. (I did notice some very important files that I
> wouldn't want to delete, and that were marked as "unexplained", a
> category that marked over 99.9% of the packages.)
>
> Thanks for the tip though. :)
> -Drew
>
There is a script, courtesy of Mike Bird,
http://lists.debian.org/debian-devel/2011/01/msg00534.html
I am not qualified to critique it but I have used it a little. One followup
suggest a patch.
Here is the list of obsolete conffiles it gave me.
Clear false psitives right off are the clamav-freshclam conffile in
logrotate and the gnome-power-manager autostart entry. So extensive
validation and backups required:
| 6.0 clamav-freshclam 0.96.5+dfsg-1~volatile1 /etc/logrotate.d/clamav-freshclam
| 6.0 dhcp3-client 4.1.1-P1-9 /etc/dhcp3/dhclient-enter-hooks.d/debug
| 6.0 dhcp3-client 4.1.1-P1-9 /etc/dhcp3/dhclient.conf
| 6.0 dhcp3-client 4.1.1-P1-9 /etc/dhcp3/dhclient-exit-hooks.d/debug
| 6.0 dhcp3-client 4.1.1-P1-9 /etc/dhcp3/dhclient-exit-hooks.d/rfc3442-classless-routes
| 6.0 dhcp3-server 4.1.1-P1-9 /etc/init.d/dhcp3-server
| 6.0 dhcp3-server 4.1.1-P1-9 /etc/dhcp3/dhcpd.conf
| 6.0 gnome-power-manager 2.32.0-2 /etc/xdg/autostart/gnome-power-manager.desktop
| 6.0 gsfonts 1:8.11+urwcyr1.0.7~pre44-4.2 //etc/defoma/hints/gsfonts.hints
| 6.0 jackd 5 /etc/bash_completion.d/jackd
| 6.0 live-helper 2.0.11-1 /etc/cron.daily/live-helper
| 6.0 live-helper 2.0.11-1 /etc/default/live-helper
| 6.0 live-helper 2.0.11-1 /etc/default/live-helper_autobuild
| 6.0 live-helper 2.0.11-1 /etc/logrotate.d/live-helper
| 6.0 mc 3:4.7.0.9-1 /etc/mc/extfs/sfs.ini
| 6.0 mc 3:4.7.0.9-1 /etc/mc/extfs/extfs.ini
| 6.0 mozilla-plugin-gnash 0.8.8-5 /etc/gnashpluginrc
| 6.0 opera 11.00.1156 /etc/operaprefs_default.ini
| 6.0 opera 11.00.1156 /etc/operaprefs_fixed.ini
| 6.0 system-tools-backends 2.10.1-2 /etc/dbus-1/system.d/system-tools-backends.conf
| 6.0 tex-common 2.08 /etc/texmf/language.d/00tex.cnf
| 6.0 texlive-base 2009-11 /etc/texmf/language.d/09texlive-base.cnf
| 6.0 texlive-latex-base 2009-11 /etc/texmf/tex/latex/config/hyperref.cfg
| 6.0 tracker 0.8.17-1 /etc/sysctl.d/30-tracker.conf
| 6.0 xpdf-common 3.02-9 /etc/xpdf/xpdfrc-cyrillic
| 6.0 xpdf-common 3.02-9 /etc/xpdf/xpdfrc-hebrew
| 6.0 xpdf-common 3.02-9 /etc/xpdf/xpdfrc-latin2
| 6.0 xpdf-common 3.02-9 /etc/xpdf/xpdfrc-greek
| 6.0 xpdf-common 3.02-9 /etc/xpdf/xpdfrc-thai
| 6.0 xpdf-common 3.02-9 /etc/xpdf/xpdfrc-arabic
| 6.0 xpdf-common 3.02-9 /etc/xpdf/xpdfrc-turkish
--
Regards,
Freeman
"Microsoft is not the answer. Microsoft is the question. NO (or Linux) is the
answer." --Somebody
Reply to: