Gentoo Archives: gentoo-user

From: ny6p01@×××××.com
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user]How can i remove the xfce clearly?
Date: Sun, 22 Apr 2012 06:04:29
Message-Id: 20120422060224.GA8907@badass.gateway.2wire.net
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 > ?? 2012??4??22?? ????7:15??Florian Philipp <lists@×××××××××××.net>??????
5 >
6 > > Am 21.04.2012 20:39, schrieb ny6p01@×××××.com:
7 > > > On Sat, Apr 21, 2012 at 09:45:49AM +0200, Florian Philipp wrote:
8 > > >> Am 21.04.2012 05:27, schrieb ??????:
9 > > >>> I just install the xfce a few days ago, But i find i didn't like it .
10 > > So
11 > > >>> i want to remove it and install the Gnome . How can i remove the xfce
12 > > >>> clearly ?
13 > > >>>
14 > > >>> --
15 > > >>> ????????????????????????
16 > > >>
17 > > >> Gnome and Xfce share many libraries. Therefore it is best to install
18 > > >> Gnome first, before removing Xfce. Otherwise you will remove libraries
19 > > >> which you will later re-emerge for Gnome.
20 > > >>
21 > > >> Then you need to configure your display manager (kdm, gdm, xdm) to use
22 > > >> Gnome instead of Xfce. Kdm and Gdm should allow you to do that directly
23 > > >> on the login screen.
24 > > >>
25 > > >> When you are satisfied with Gnome, edit /var/lib/portage/world and
26 > > >> remove every line containing an Xfce package. Then run `emerge -av
27 > > >> --depclean` and you are done.
28 > > >>
29 > > >> You could continue to remove config files but that is usually not worth
30 > > >> the trouble.
31 > > >>
32 > > >> Hope this helps,
33 > > >> Florian Philipp
34 > > >>
35 > > >
36 > > >
37 > > > Do I understand you correctly that it is not necessary to run emerge
38 > > > -unmerge first before removing the atoms from @world and running emerge
39 > > > --depclean?
40 > > >
41 > > > Terry
42 > > >
43 > >
44 > > Yes. I think it is also mentioned in the gentoo handbook. In fact, you
45 > > should not use --unmerge because it doesn't check dependencies before
46 > > removing the package.
47 > >
48 > > If you want to delete a package only if no other package depends on it,
49 > > either remove it from world or use
50 > > `emerge -av --depclean <package_name>`.
51 > > The latter has the advantage of also telling you what depends on it.
52 > >
53 > > Regards,
54 > > Florian Philipp
55
56 Many thanks.
57
58 Terry