Hi,

cruft-ng aims to provide an output that is
character-identical to "cruft",
so it's documentation or this article also apply:

http://raphaelhertzog.com/2011/02/28/debian-cleanup-tip-5-identify-cruft-that-can-be-removed-from-your-debian-system/

> etckeeper
There is currenlty no rule for this tool, so cruft/cruft-ng
can't know which files are OK and which are extraneous.

This is a known design limitation, and here's a proposal 
to fix some of it by moving somefunctionality in dpkg itself:

https://wiki.debian.org/Cruft/purge

Meanwhile, I've digged this:
https://sources.debian.net/src/etckeeper/1.18.1/debian/postrm/

Can you provide a listing of  /etc/.etckeeper & /var/cache/etckeeper ?
("find /etc/.etckeeper ; find /var/cache/etckeeper")

I could blindly add this rule, but I'd rather
had a look a the files first.

-------------8<---------8<-------------
/etc/.etckeeper/**
/var/cache/etckeeper
/var/cache/etckeeper/**
-------------8<---------8<-------------

You can try it yourself by creating a text file
in /etc/cruft/filters/etckeeper/etckeeper
or /usr/lib/cruft/filters-unex/etckeeper .

Creating it in /usr/... means it will be overwritten
by a new cruft|cruft-common release;
which is the behaviour you probably want here.

If the same rule exists in both /etc/... & /usr/...
the one in /etc/ takes precedence, like for systemd units.
(but there is no equivalent to systemd-delta)

> /etc & /var/log.
each file in /etc or /var/log may be linked to a different package;
that means adding yet more indivudal rules

> The cruft-ng tool reports tons of files under /usr/local
> I cannot see any way to prevent it from doing that.

You need to create your own rule in 
"/etc/cruft/filters/sed" with
-------------8<---------8<-------------
/usr/local/**
-------------8<---------8<-------------
to ignore or whatever appropriate.

Why 'sed', because:
*) I just noticed forgot to had a rule to match all
    the all-upercases files in /etc/cruft/filters (#!%/!!*)

    all-upercase meaning: "process this rule even if package
    or matching name" is not installed

*) sed doesn't need a rule

*) sed is allways installed (popcon #2)

Hopes it helps,

Alexandre Detiste


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to