dereenigne.org

reverse engineered

Debian /etc/ Cleanup

After upgrading a Debian system, it is a good idea to clean up any old configuration files that remain in /etc/. The following one-liner should find most of them for you:

find /etc/ -name "*.dpkg-dist" -o -name "*.dpkg-new" -o -name "*.dpkg-old" -o -name "*.ucf-dist" -o -name "*.ucf-new" -o -name "*.ucf-old" | sort

Running it on my desktop yields the following files:

root@lambda:/etc# find /etc/ -name "*.dpkg-dist" -o -name "*.dpkg-new" -o -name "*.dpkg-old" -o -name "*.ucf-dist" -o -name "*.ucf-new" -o -name "*.ucf-old" | sort
/etc/apt/apt.conf.d/50unattended-upgrades.dpkg-old
/etc/ca-certificates.conf.dpkg-old
/etc/gdm3/greeter.gconf-defaults.dpkg-old
/etc/modprobe.d/alsa-base.conf.dpkg-old
/etc/munin/munin-node.conf.dpkg-dist
/etc/munin/plugin-conf.d/munin-node.dpkg-old
/etc/mysql/my.cnf.dpkg-old
/etc/pam.d/sshd.dpkg-dist
/etc/pulse/daemon.conf.dpkg-dist
/etc/samba/smb.conf.ucf-old
/etc/smsd.conf.ucf-old
/etc/sudoers.dpkg-old

comments powered by Disqus