Re: Joe [and MANY others] doesn't delete its config directory[ies] on purge
On Mon, 2002-02-11 at 23:33, Josip Rodin wrote:
> On Mon, Feb 11, 2002 at 04:07:23PM -0600, Adam Majer wrote:
> > > > Joe does not delete /etc/joe on purge. postrm should check if purge
> > > > is enacted and rmdir /etc/joe..
> > It makes the /etc a junkyard if you install many packages with this bug..
> > The fix is trivial. Without the fix, after running Debian for years
> > without reinstall, the /etc directory becomes unmanagable. It bloats like
> > windows/system...
>
> find /etc -type d -empty | xargs rmdir
This command will also remove empty directories that are currently in
use:
root@spiderwebs:~#find /etc/ -type d -empty|xargs dlocate
foomatic-bin: /etc/foomatic
openssl: /etc/ssl/private
deliver: /etc/deliver
raidtools2: /etc/raid
cruft: /etc/cruft/filters
gconf: /etc/gconf/gconf.xml.mandatory
cupsys: /etc/cups/interfaces
t1lib1: /etc/t1lib
console-common: /etc/console
console-tools: /etc/console-tools
console-tools: /etc/console-tools/config
logcheck-database: /etc/logcheck/violations.d
logcheck-database: /etc/logcheck/cracking.d
logcheck-database: /etc/logcheck/violations.ignore.d
shaper: /etc/shaper
freeswan: /etc/ipsec.d/cacerts
freeswan: /etc/ipsec.d/crls
--
Tot ziens,
Bart-Jan
Reply to: