1 |
Mick wrote: |
2 |
> On Thursday, 6 June 2019 05:56:53 BST Dale wrote: |
3 |
>> Grant Taylor wrote: |
4 |
>>> On 6/5/19 9:18 PM, Dale wrote: |
5 |
>>>> I would start by removing anything that has libs in it. Generally, |
6 |
>>>> those should be pulled in as deps. After that, I'd go through the |
7 |
>>>> list and remove anything that you don't directly use. |
8 |
>>> ACK |
9 |
>>> |
10 |
>>> Can I just edit /var/lib/portage/world? Or do I need to do something |
11 |
>>> else? |
12 |
> Yes, manually edit this file, but FIRST MAKE A BACK UP. :-) |
13 |
> |
14 |
> |
15 |
>> It's a plain text file and I've edited it in the past with no problems. |
16 |
>> I've done that cleanup before and it can take some time to accomplish |
17 |
>> depending on how bad it is. I went through this when I first started |
18 |
>> using Gentoo and didn't know any better. I'd do small chunks and keep a |
19 |
>> versioned back up file just in case. |
20 |
>> |
21 |
>> I've also used the script once. It does fairly well. It may miss a |
22 |
>> couple here and there and may have a few false positives as well. Still |
23 |
>> it can do some heavy lifting for you. I'd copy the world file to a safe |
24 |
>> place and try the script. I'd try it once with the old world file in |
25 |
>> place and once without a world file at all. Then see which one works |
26 |
>> best. If that fails, do it manually. |
27 |
>> |
28 |
>> Good luck. I hope one or the other works. |
29 |
>> |
30 |
>> Dale |
31 |
>> |
32 |
>> :-) :-) |
33 |
> I think, but may be wrong, regenworld will pick up anything and everything in |
34 |
> emerge.log and add it to your world file. Definitely create a back up of / |
35 |
> var/lib/portage/world if you do not have one already, because you can diff it |
36 |
> later on to see how much weight it has put on. |
37 |
> |
38 |
|
39 |
|
40 |
From the help info, I think that is what it is saying. However, when I |
41 |
used it last time, many years ago, it would somehow figure out what is |
42 |
dependencies. From what I recall, it didn't do a bad job. |
43 |
|
44 |
As you say tho, backup the file before doing anything. At least then |
45 |
there is something to refer back to. Of course, it may be a option to |
46 |
just start from a empty world file and add back what is really needed |
47 |
and just keep running --depclean to see what needs to be added back to |
48 |
the world file. |
49 |
|
50 |
This is like updating a old un-maintained system. In some cases it is |
51 |
best to reinstall but in some it may not take much effort to do the |
52 |
updates just in smaller steps. Thing is, one doesn't know until one |
53 |
starts the process. It all depends on so many variables. Plus, we |
54 |
ain't the ones doing it either. lol |
55 |
|
56 |
Dale |
57 |
|
58 |
:-) :-) |