1 |
August 16, 2018 8:07 AM, "Andrew Udvare" <audvare@×××××.com> wrote: |
2 |
|
3 |
> gcruft seems to have died off (https://www.google.com/search?q=gcruft |
4 |
> only returns ebuild results). I was using it quite a lot and wrote many |
5 |
> exception files. It's gone now with no way for my or anyone else's |
6 |
> ebuild to get the original source. I did preserve it though, here: |
7 |
> https://gitlab.com/Tatsh/gcruft |
8 |
> |
9 |
> I wrote a replacement in C named gcrud. It only needs GLib2 installed to |
10 |
> work. It's much faster than gcruft ever was. The code is here: |
11 |
> |
12 |
> https://gitlab.com/Tatsh/gcrud |
13 |
> https://github.com/Tatsh/gcrud |
14 |
> |
15 |
> I am placing preference in GitLab for issues and merge requests, but I |
16 |
> will accept PRs from GitHub. |
17 |
> |
18 |
> The whitelist https://gitlab.com/Tatsh/gcrud/blob/master/whitelist.c is |
19 |
> currently hard-coded and limited but the results are satisfactory for |
20 |
> now in my use cases. |
21 |
> |
22 |
> Type use case: |
23 |
> |
24 |
> sudo ./gcrud | sort -u > out.log |
25 |
> |
26 |
> Examine out.log for things you can delete. There are absolutely zero |
27 |
> calls to delete files from the machine in my code and never will be any |
28 |
> kind of automation support. |
29 |
> |
30 |
> If anyone tries it out I certainly would like to see your output and get |
31 |
> some bug reports or suggestions. The main feature planned is reading |
32 |
> from a configuration file for exact file paths and regexs. |
33 |
> |
34 |
> -- |
35 |
> Andrew |
36 |
|
37 |
Hi, |
38 |
|
39 |
So I tested it, and I was surprised how many /etc files weren't put into whitelist. |
40 |
Actually, most of /etc shouldn't be suggested for deletion if the packages are still installed. |
41 |
|
42 |
Portage stuff like repositories could be whitelisted in a dynamic manner, or at least bing able to |
43 |
tell what directorie(s) are used to store them. |
44 |
|
45 |
I also caught some wrongly listed files because of the multilib system with /lib symlink. |
46 |
For example, dhcpcd declared /lib/dhcpcd/dhcpcd-hooks, thus the realpath /lib64/dhcpcd/dhcpcd-hooks |
47 |
was listed in the removal suggestion. This should be fixed with profile 17.1 |
48 |
|
49 |
The log is so huge at the moment it is useless for me :/ |
50 |
|
51 |
% wc -l out.log |
52 |
461575 out.log |
53 |
|
54 |
-- |
55 |
Corentin “Nado” Pazdera |