On Fri, Feb 13, 2009 at 8:34 AM, Helmut Jarausch <
jarau...@igpm.rwth-aachen.de> wrote:

> Hi,
>
> switching to a new machine is good opportunity to do
> house-cleaning.
>
> I wonder what emerge --emptytree does when several versions of some
> packages like kde or gcc are installed (in different slots).
> The entry in the 'world' file does not contain the slot info.
>
> Is there any danger it will leave my machine with only one version
> of each package?
>
> Many thanks for your help,
> Helmut.
>
> --
> Helmut Jarausch
>
> Lehrstuhl fuer Numerische Mathematik
> RWTH - Aachen University
> D 52056 Aachen, Germany
>
>
emerge -e world will re-emerge every package which is a dependency of
packages in your world file. It won't, however, do housecleaning of packages
in separate slots which are not used. To do that:

#usually required to make the next step happy
emerge -uDN world
emerge -p --depclean

Make sure you have the -p option, and sanity check the output of --depclean.
It's almost always correct, but only almost. See man emerge for more
information on other useful things the --depclean can do (in particular, it
does what most people seem to think 'equery depends' does).

Nick

Reply via email to