Gentoo Archives: gentoo-user

From: Michael Mol <mikemol@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: move to xfce and forget kde and gnome
Date: Mon, 22 Aug 2011 11:32:05
Message-Id: CA+czFiDJr3WiM1ja90HyVNQqu3_6d5tWou2Ds9w4q=W7=eJqvA@mail.gmail.com
In Reply to: Re: [gentoo-user] Re: move to xfce and forget kde and gnome by Space Cake
1 2011/8/22 Space Cake <spacecakex@×××××.com>:
2 > 2011-08-19 14:54 keltezéssel, Nikos Chantziaras írta:
3 >> On 08/19/2011 03:02 PM, Space Cake wrote:
4 >>> hi,
5 >>>
6 >>> after playing a lot with desktop environment first I've decided to move
7 >>> from kde to gnome because kde is too "shine" and eat too much and
8 >>> contains a lot of feature which I don't really need.. gnome is good but
9 >>> still too fat.... so finally I've found Xfce which is perfect for my
10 >>> needs... :)
11 >>>
12 >>> my question is what is the easiest way to get rid of kde/gnome stuff? is
13 >>> this enough to change my useflags to -kde and -gnome? Is there any list
14 >>> what I can safely unmerge in this case?
15 >>
16 >> You change your profile.  You can see your current profile with:
17 >>
18 >>   eselect profile list
19 >>
20 >> For KDE you would use "default/linux/amd64/10.0/desktop/kde" and for
21 >> Gnome "default/linux/amd64/10.0/desktop/gnome".
22 >>
23 >> For anything else, use "default/linux/amd64/10.0/desktop".  Then do a:
24 >>
25 >>   emerge -auDN --with-bdeps=y world
26 >>   emerge -a --depclean
27 >>
28 >> If KDE/Gnome stuff still remains after that, use:
29 >>
30 >>   emerge -pv --depclean <package>
31 >>
32 >> to see what's pulling-in <package>.
33 >>
34 >>
35 > So, what if I have changed the flags to -kde and -gnome, and I also ran
36 > depclean, also used the script provided by some kind member of the list
37 > and I still have all the kde gnome stuff on my system? Do I need some
38 > list of packages should I unmerge? Should I simple unmerge packages
39 > kde-base/* and so on and run revdep-rebuild after this? Is this a
40 > working approach?
41
42 I just cleaned off KDE (and PulseAudio, as it happens) from my system
43 Saturday night/sunday morning. I wasn't using the KDE profile.
44
45 Here are the steps I followed:
46
47 1) Remove all 'kde' and 'qt' USE flags from make.conf. (I didn't have
48 to remove qt, but I preferred to switch over to package-specific
49 support for it, as needed, rather than global)
50 2) emerge --depclean (pretend first, then add anything I *knew* I
51 didn't want to lose to @world, then pretend again, until there wasn't
52 anything that would be removed I wasn't comfortable with)
53 3) If there were any KDE packages left, emerge -pPv on them, to find
54 what was pulling them in. "emerge --deselect" the packages that were
55 pulling the KDE packages in. (Sometimes, this would involve supplying
56 an alternative. For example, I had to emerge Awesome before it would
57 remove knotify.)
58 4) Jump back to step 2, unless I couldn't get a package to disappear
59 with --depclean.
60 5) revdep-rebuild (in my case, only a Jack library was busted)
61 6) emerge --deep --newuse --keep-going world && emerge --sync &&
62 emerge --update --deep --newuse --keep-going world # This part, I left
63 running overnight. It succeeded, to my surprise.
64
65 I did have a couple recursive-dependency-like situations. For example,
66 KDE has a policykit agent, which depends on polkit. The policykit
67 agent wouldn't go away; emerge -pPv said polkit was pulling it in, and
68 said that the agent was what was pulling polkit in. In those
69 situations, I found I had to --unmerge a piece of the dependency loop
70 in order for emerge to allow it to go away or get replaced. In the
71 polkit case, I removed the KDE agent.
72
73 I also had to remove a few packages I do occasionally use, because
74 they were pulling in Qt or KDE. In particular, I --deselect'd calibre.
75 I've still got qt libs on my system, though, because I use
76 Luminance-HDR a *lot*.
77
78 I found it surprisingly painless. Note, I went through most of these
79 steps with X *NOT* running; I switched to a terminal and stopped kdm
80 before really going past step 2.
81
82 --
83 :wq

Replies

Subject Author
Re: [gentoo-user] Re: move to xfce and forget kde and gnome Michael Mol <mikemol@×××××.com>