Gentoo Archives: gentoo-user

From: Grant <emailgrant@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Installing outside of Portage & cruft removal
Date: Mon, 26 Jan 2009 20:17:37
Message-Id: 49bf44f10901261217kd7c7425h52fdd0a988489842@mail.gmail.com
In Reply to: Re: [gentoo-user] Installing outside of Portage & cruft removal by Daniel Pielmeier
1 >> I suppose you and Jesus are right, but what about cruft removal? Are
2 >> you saying Gentoo is 100% cruft-free? I've got a lot of junk in /etc
3 >> and especially ~/.*
4 >>
5 >
6 > No it isn't, but this is very hard to automate cruft detection via
7 > scripts as you still have to decide yourself if a file is really needed
8 > or not.
9 >
10 > It is very easy to compare all the files on the filesystem with the list
11 > of files controlled by portage. But everything that is left over is not
12 > cruft, because there are files you put somewhere yourself or files that
13 > are not controlled by portage but are essential to the system. So you
14 > have to use some kind of ignorelist to exclude files that are not under
15 > portage control but needed. As you see it is still you who has to decide
16 > if a file is cruft or not.
17 >
18 > I have done something minimalistic that evolved over time and that fits
19 > my needs. I long refrained from attaching it here, but as this question
20 > comes up so often I think I will share it. I am not a programming guru
21 > so there might be bugs or other stuff done in a poor way so don't come
22 > here and complain if the script has killed your kitten.
23 >
24 > I will attach the cruft script written in perl and as an example the
25 > ignorelist I use for my system and the list of cruft files that remain
26 > as false positives. You have to customize the ignorelist yourself so it
27 > does a proper job on your system. I have tried to make the script user
28 > friendly but it surly isn't so you may have to tinker with it a bit. The
29 > script actually does not delete anything it just presents you a list of
30 > files that contains all files on the filesystem minus the files
31 > controlled by portage and minus the files you have ignored.
32 >
33 >
34 > There is also another cruft script that you may get from overlays but I
35 > don't remember where. If you search the archives you may find it as it
36 > has already been mentioned here.
37 >
38 > Regards,
39 >
40 > Daniel
41
42 Thank you Daniel and Dale and everyone for their opinions regarding
43 this. Adding a list of files tracked by portage to a list of files
44 specified by me and reporting on the different sounds like a very
45 useful thing to me. Daniel, can you remember anything else about that
46 cruft script from an overlay? I can't seem to come up with it from
47 Google.
48
49 Writing an ebuild is best, but sometimes you just want to give a
50 program a try without writing an ebuild (like everyone else running
51 Linux does) and a scruft script enables you to do that without making
52 a mess of your system.
53
54 - Grant

Replies

Subject Author
Re: [gentoo-user] Installing outside of Portage & cruft removal "Jesús Guerrero" <i92guboj@×××××.es>
Re: [gentoo-user] Installing outside of Portage & cruft removal Daniel Pielmeier <daniel.pielmeier@××××××××××.com>