not dangerous. only you need to look carefully at what depclean wants to delete.
as gentoo says, in some cases it could break dependencies needed by other 
software and
to avoid damage you should run revdep-rebuild, which scans all dependecies and 
reinstalls
them if it finds something is missing.
I use both regularly, especially after an emerge --update world and never had 
any real
trouble with it.

hope this eases your concerns a bit

michael

-- 
Michael Scherer
Univ.klinik f. Psychiatrie
email: michael.sche...@meduniwien.ac.at
phone: +43 6991 941 22 54

  ----- Original Message ----- 
  From: 赵佳晖 
  To: gentoo-user@lists.gentoo.org 
  Sent: Sunday, 22 April, 2012 03:31
  Subject: Re: [gentoo-user]How can i remove the xfce clearly?


  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







  -- 
  好好学习,天天向上!!!

Reply via email to