1 |
On 7/16/07, Samir Faci <samir.list@×××××.com> wrote: |
2 |
> Hi all, |
3 |
> |
4 |
> So, I have a gentoo install that's slowly evolved over the past 3 years |
5 |
> or so years. It's now so cluttered with packages, it's becoming ridiculous, |
6 |
> especially for a headless server. What I'd like to do is be able to remove |
7 |
> all KDE/Gnome/X/gtk/qt/...etc out of the machine and not have it break the |
8 |
> machine completely. |
9 |
> |
10 |
> Any suggestion on how to do go about this? At this stage, I'd like the |
11 |
> server to have the basic system build, LAMP, and Postfix. |
12 |
> |
13 |
> If I start removing packages, then revdep complains about dependencies and |
14 |
> ends pulling back the packages I had removed, same thing with world. I |
15 |
> globally removed all the X related flags I can think of. |
16 |
> |
17 |
> Also, in the process of switching to a hardened profile, which is one reason |
18 |
> why I wanted to clean up the install. |
19 |
> |
20 |
> Thanks again, |
21 |
> |
22 |
> Any help would be appreciated. |
23 |
> |
24 |
> -- |
25 |
> Samir |
26 |
> |
27 |
|
28 |
Hi Samir, |
29 |
You'll probably get some answers more detailed than mine but |
30 |
fundamentally it goes something like this: |
31 |
|
32 |
1) First do and emerge -DuN world and make sure everything is up to date. |
33 |
|
34 |
2) By hand then emerge -C everything (for instance) with gnome or kde |
35 |
in the package name. |
36 |
|
37 |
3) Next do an emerge --depclean and let portage remove packages that |
38 |
were needed for gnome or kde but not required now |
39 |
|
40 |
4) Do a revdep-rebuild and see what it wants to pull in. If it's |
41 |
trying to pull in something you don't think is necessary then do an |
42 |
emerge -pe --tree and look at why it's getting pulled in. Either |
43 |
remove what's causing it to get rebuilt or let it get pulled back in. |
44 |
|
45 |
At this point it's lather and repeat if necessary. |
46 |
|
47 |
I've done this a couple of times. It' works but be careful that you |
48 |
don't reboot during the process as something might be gone that's |
49 |
still necessary. |
50 |
|
51 |
Hope this helps, |
52 |
Mark |
53 |
-- |
54 |
gentoo-user@g.o mailing list |