Gentoo Archives: gentoo-user

From: Steven Ringwald <asric@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] A Gentoo Enema
Date: Sat, 17 Dec 2005 06:06:03
Message-Id: 43A3A9D8.2050404@asric.com
In Reply to: [gentoo-user] A Gentoo Enema by Tom Eastman
1 Tom Eastman wrote:
2
3 >Hey all,
4 >
5 >Sorry about any imagery conjured up by the subject line... I've been
6 >running the same gentoo system on my computer for several years now...
7 >keeping it relativey updated, but over time there's always cruft that
8 >builds up, stuff that gets left behind during upgrades, or re-installs.
9 > Packages that don't change version for a long time, and don't get
10 >recompiled with the latest compiler, etc etc and so on and so forth.
11 >
12 >So what I want to do is give my computer a complete clean-out. What I
13 >really CAN'T be bothered doing is a complete format and re-install!
14 >
15 >One idea I've had is to delete almost every entry in my 'world' file,
16 >and then do an 'emerge depclean'. That would be pretty cool, empty out
17 >a huge amount of stuff, and then start re-installing at my leisure.
18 >
19 >But what that *wouldn't* do is delete all the files in random places
20 >that aren't owned by any particular package. This would be a good thing
21 >to do when spring cleaning, as it were.
22 >
23 >Is there a tool that will allow me to find *all* files that aren't owned
24 >by any package, so that I can then decide what to do with them?
25 >Obviously skipping directories such as /home/. Then I can delete
26 >everything that doesn't look critical, hopefully without losing my stuff
27 >in places like /boot or /etc either :-)
28 >
29 >Then I think I would do an emerge -e system, and then start re-adding
30 >applications I wanted.
31 >
32 >What do you think? Does anyone have any ideas about good ways of
33 >'refreshing' my gentoo system? All suggestions appreciated :-)
34 >
35 >Thanks!
36 >
37
38 Well, what I would do is:
39
40 % etc-update
41 (to make sure that there aren't any cruft files lying around)
42
43 and then:
44
45 % emerge -eD world
46
47 to rebuild the entire system.
48
49 You could also do:
50
51 emerge --newuse -D world
52
53 to just upgrade things that haven't been built since you change USE
54 options.
55
56 or if you have gentoolkit installed,
57
58 revdep-rebuild
59
60 to verify that all packages have all the correct dependancies.
61
62 Steve
63
64 --
65 gentoo-user@g.o mailing list