On Sun, Apr 22, 2012 at 09:31:18AM +0800, ?????? wrote:
> But it seems that the --depclean is a dangerous operate ??
> 
> ?? 2012??4??22?? ????7:15??Florian Philipp <li...@binarywings.net>??????
> 
> > Am 21.04.2012 20:39, schrieb ny6...@gmail.com:
> > > On Sat, Apr 21, 2012 at 09:45:49AM +0200, Florian Philipp wrote:
> > >> Am 21.04.2012 05:27, schrieb ??????:
> > >>> I just install the xfce a few days ago, But i find i didn't like it .
> > So
> > >>> i want to remove it and install the Gnome . How can i remove the xfce
> > >>> clearly ?
> > >>>
> > >>> --
> > >>> ????????????????????????
> > >>
> > >> Gnome and Xfce share many libraries. Therefore it is best to install
> > >> Gnome first, before removing Xfce. Otherwise you will remove libraries
> > >> which you will later re-emerge for Gnome.
> > >>
> > >> Then you need to configure your display manager (kdm, gdm, xdm) to use
> > >> Gnome instead of Xfce. Kdm and Gdm should allow you to do that directly
> > >> on the login screen.
> > >>
> > >> When you are satisfied with Gnome, edit /var/lib/portage/world and
> > >> remove every line containing an Xfce package. Then run `emerge -av
> > >> --depclean` and you are done.
> > >>
> > >> You could continue to remove config files but that is usually not worth
> > >> the trouble.
> > >>
> > >> Hope this helps,
> > >> Florian Philipp
> > >>
> > >
> > >
> > > Do I understand you correctly that it is not necessary to run emerge
> > > -unmerge first before removing the atoms from @world and running emerge
> > > --depclean?
> > >
> > > Terry
> > >
> >
> > Yes. I think it is also mentioned in the gentoo handbook. In fact, you
> > should not use --unmerge because it doesn't check dependencies before
> > removing the package.
> >
> > If you want to delete a package only if no other package depends on it,
> > either remove it from world or use
> > `emerge -av --depclean <package_name>`.
> > The latter has the advantage of also telling you what depends on it.
> >
> > Regards,
> > Florian Philipp

Many thanks.

Terry

Reply via email to