Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user]How can i remove the xfce clearly?
Date: Mon, 23 Apr 2012 19:18:40
Message-Id: 20120423191604.GA3806@waltdnes.org
In Reply to: Re: [gentoo-user]How can i remove the xfce clearly? by "赵佳晖"
1 On Sun, Apr 22, 2012 at 09:31:18AM +0800, ?????? wrote
2 > But it seems that the --depclean is a dangerous operate ??
3
4 I've built a script called "autodepclean" that runs "--pretend --depclean"
5 and filters the output to a separate script file "cleanscript". You can
6 run "autodepclean" as a regular user, but "cleanscript" has to be run as
7 root. Here is how I use it...
8
9 1) Run autodepclean. It takes approximately 30 seconds on my machine.
10
11 2) Look at cleanscript with a text-editor, and delete lines that remove
12 programs you want to keep.
13
14 3) Run "cleanscript" as root. It automatically runs "revdep-rebuild" at
15 the end.
16
17 Note that "nano" is no longer a system requirement. If you want the
18 "nano" editor, you need to include it in world. I.e. "emerge nano".
19 The "autodepclean" script is attached to this post.
20
21 --
22 Walter Dnes <waltdnes@××××××××.org>

Attachments

File name MIME type
autodepclean text/plain