On Sat, Jun 04, 2016 at 07:52:28AM BST, Sebastien Marie wrote: > On Sat, Jun 04, 2016 at 07:28:58AM +0100, Raf Czlonka wrote: > > > > > > +1 for sysclean to check for obsolete packages. sysclean reminds you which > > > files are obsolete. but be careful deleting the files. I deleted a current > > > libc.so by mistake.... open a root shell somewhere and then start deleting > > > carefully, very carefully. > > > > Not sure how you managed to do that ;^) > > one possible scenario is manual installing libc.so (make install from > /usr/lib/libc), so without using make build or snapshot.
Ah, yes - I mainly use snapshots :^) > > The only time this might be dangerous is when new packages haven't yet > > been cut for the new version of, i.e. libc, etc. and they still require > > the old one. > > with default mode (files mode), sysclean will *not* show libraries that > depend of installed packages (even if these libraries are old and > doesn't come from new system). > > it is a key difference between sysclean -f (or just sysclean as it is > the default mode) and sysclean -a. Running 'sysclean -a' is exactly what I had in mind. > > Otherwise, create a /etc/sysclean.ignore *first* with something like: > > > > @include "/etc/changelist" > > /bsd.up > > /etc/apm > > /etc/hotplug/attach > > /etc/iked.conf > > /etc/kbdtype > > /etc/mixerctl.conf > > /etc/rebound.conf > > /etc/ssl/private/private.csr > > /etc/ssl/private/private.key > > /etc/vi.exrc > > /etc/wifi > > /etc/wifi.nwid > > /snapshots > > /etc/sysclean.ignore # BTW, given that one can't specify another > > file, > > # shouldn't this be implied and thus redundant? > > ... > > sysclean follows strictly (or try to) the definition: show every files > not present on a default install. As "/etc/sysclean.ignore" isn't > present on a default install, it is showed. Sure, I know how it works :^) The very existence of /etc/sysclean.ignore should imply the file itself being ignored as it is neither obvious from the man page (this is what I actually expected to happen) nor is there a way to use a different .ignore file. Otherwise users will simply loose the .ignore file - I must've done that at least several times but good ol' Puppet manages it for me ;^) This all is of course IMVHO and I don't expect everyone to agree :^) Sebastien, thank you for writing 'sysclean' - it made the task of keeping the system tidy, much more pleasurable. Regards, Raf