Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] move to xfce and forget kde and gnome
Date: Fri, 19 Aug 2011 23:15:23
Message-Id: 20110819231407.GA4717@waltdnes.org
In Reply to: Re: [gentoo-user] move to xfce and forget kde and gnome by Space Cake
1 On Fri, Aug 19, 2011 at 05:19:29PM +0200, Space Cake wrote
2
3 > I'll try to avoid as many kde/gnome application as I can :) I don't
4 > really like them because I want to have my window in front of me right
5 > when click on the icon :). I just started to clean-up my useflags,
6 > changed to desktop profile and I'll leave my machine here for the
7 > weekend to re-emerge everything is needed for this change. I'm sure
8 > some revdep-rebuild and depclean still waiting for me and also I think
9 > lot of kde / gnome libs will remain because of the dependencies...
10
11 Here's my "autodepclean" script. It parses the output of a pretend
12 depclean and generates, but does not execute, a script called
13 "cleanscript", which has to be run as root. Note the warning to check
14 "cleanscript" before running it. Remove the commands to unmerge the
15 stuff you want to keep. In addition to some gentoo-sources kernels, it
16 now wants to remove nano, ever since "virtual/editor" showed up in
17 Gentoo. I get the warning...
18
19 !!! 'app-editors/nano' (virtual/editor) is part of your system profile.
20 !!! Unmerging it may be damaging to your system.
21
22 Here's the script...
23
24 #!/bin/bash
25 # autodepclean script v 0.01 released under GPL v3 by Walter Dnes 2010/08/18
26 # Generates a file "cleanscript" to remove unused ebuilds, including
27 # buildtime-only dependancies.
28 #
29 # Warning; this script is still beta. I recommend that you check the output
30 # in cleanscript before running it. It is agressive about removing unused
31 # gentoo-sources versions. This includes those that are higher than your
32 # current kernel. This is technically correct for removing unused ebuilds,
33 # but it may not be what you want.
34 #
35 echo "#!/bin/bash" > cleanscript
36 echo "#" > cleanscript.000
37 emerge --pretend --depclean |\
38 grep -A1 "^ .*/" |\
39 grep -v "^ \*" |\
40 grep -v "^--" |\
41 sed ":/: {
42 N
43 s:\n::
44 s/ selected: /-/
45 s/^ /emerge --depclean =/
46 }" >> cleanscript.000
47 while read
48 do
49 echo "${REPLY}" >> cleanscript
50 if [ "${REPLY:0:6}" == "emerge" ]; then
51 echo "revdep-rebuild" >> cleanscript
52 fi
53 done < cleanscript.000
54 chmod 744 cleanscript
55
56
57 --
58 Walter Dnes <waltdnes@××××××××.org>

Replies

Subject Author
Re: [gentoo-user] move to xfce and forget kde and gnome Peter Humphrey <peter@××××××××××××××.org>
Re: [gentoo-user] move to xfce and forget kde and gnome Pandu Poluan <pandu@××××××.info>