1 |
On Tuesday 19 May 2009 19:32:01 felix@×××××××.com wrote: |
2 |
> In a previous thread, I learned about keeping world simple with |
3 |
> --oneshot. I realized how mine had gotten so bloated -- when I |
4 |
> update, I edit the --pretend output and feed that directly into |
5 |
> emerge without the benefit of --oneshot. |
6 |
> |
7 |
> So today I started a cleanup project. I began by moving world to |
8 |
> world-bloated and running emerge --depclean -p just to see what would |
9 |
> happen. The answer is ... a loop! |
10 |
> |
11 |
> There were a couple of missing or out of date packages and I emerged |
12 |
> them. But libusb has to be 10.6 to make some packages happy and 10.7 |
13 |
> to satisfy others. |
14 |
> |
15 |
> I have been down this route before. I don't feel like unmerging |
16 |
> either side of the mess, and even if I didn't want the packages, it is |
17 |
> way too much hassle to unmerge them one by one as the list of unhappy |
18 |
> packages grows. |
19 |
> |
20 |
> So, what is the proper way to recreate a proper world file? If |
21 |
> depclean can finally run one of these days when gentoo gets back in |
22 |
> sync, is staring with an empty world file as good as anything else? |
23 |
> The idea of trying to make intelligent guesses about which packages |
24 |
> are truly top level, out of 3000+ packages, is not enticing. |
25 |
|
26 |
Step 1 is to make sure the machine is up to date - emerge -avuND world |
27 |
Otherwise you are trying to take things out and portage is trying to put |
28 |
things in - confusing. Then satisfy the blockers like that issue with libusb, |
29 |
but chances are emerge world fixed that already. |
30 |
|
31 |
Edit the world file and remove every version number in that file if present. |
32 |
You don;t need it and portage is infinitely better at tracking it than you |
33 |
are. Then remove everything with a category ending in "lib", these rarely need |
34 |
to be in world. |
35 |
|
36 |
Periodically run emerge -av --depclean adding things back to world that you do |
37 |
want - it's a rinse and repeat process. |
38 |
|
39 |
If you use kde and gnome, I'll bet you have every package listed. Remove them |
40 |
all and add kde-meta or gnome back in (or maybe the @kde set if you use that). |
41 |
Let portage worry about dependencies. |
42 |
|
43 |
By now you should be getting the idea that there's no easy way to recreate a |
44 |
minimum world file from an existing system. eix-test-obsolete looks like it |
45 |
ought to do this, but unfortunately doesn't. |
46 |
|
47 |
-- |
48 |
alan dot mckinnon at gmail dot com |