On Thu, 06 Nov 2014 16:11:49 +1100, wraeth wrote:

> > > For future reference, make sure nothing depends on whatever version
> > > of python you want to remove before you remove it.  If you don't,
> > > it could get very interesting in a really bad way.  
> > 
> > The simplest way to do that, with any package you want to remove, is
> > to use
> > 
> > emerge --depclean --ask -v cat/pkg
> > 
> > instead of
> > 
> > emerge --unmerge --ask cat/pkg
> > 
> > With depclean, dependencies are checked and the package will only be
> > removed if nothing depends on it. Adding the -v shows you what
> > depends on it.  
> 
> It should also be noted that running --depclean on a specific package
> *ONLY* removes that package. After depcleaning a specific package, you
> should run --depclean again to remove any dependencies of that removed
> package:
> 
>   emerge --depclean --ask -v cat/pkg
>   emerge --depclean --ask
> 
> The alternative (at least for packages not in a selected set) is to
> 
>   emerge --deselect cat/pkg
>   emerge --depclean --ask
> 
> This will, oddly enough, deselect the package from being wanted or
> "selected", allowing it to be depcleaned, along with its own
> dependencies, if no other packages depend on it.

Good point. The advantage of depcleaning a particular package is that if
something does depend on it, emerge will tell you what, and you may
decide to remove or change flags on the dependant package. With deselect,
if the initial package is still wanted, the subsequent depclean will do
nothing silently.

Horses for courses really,


-- 
Neil Bothwick

Therapy is expensive, popping bubble wrap is cheap! You choose.

Attachment: pgpMx7LDwjrB8.pgp
Description: OpenPGP digital signature

Reply via email to