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.

> 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.

> 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.

-- 
Sebastien Marie

Reply via email to