I agree...never ever use prune unless it is only removing something you WANT to remove that was installed in a new slot.  The only times I've ever used it are to remove vanilla-sources-2.6.12.5 once I got 2.16.14.2 set up, and to remove gcc-3.3.6 once 3.4.4 was set up.  It's a very dangerous option, the only reason I used it in those cases is because it took less typing than emerge -C with the exact version, and I KNEW I wanted to remove what it was removing.

On 12/7/05, Walter Dnes <[EMAIL PROTECTED]> wrote:
On Sun, Dec 04, 2005 at 10:45:41AM -0700, Richard Fish wrote

> In addition to Holly's comments, I would take a look at the
> output of "emerge --pretend --prune".  It is likely that you have
> some slotted packages that you do not use anymore and can delete.

  *DON'T* do that.  It appears that "emerge --pretend --prune" blindly
tells you to delete all but one version of a package.  That can be a
*BAAAAD* idea.  Here is part of its output on my system...

x11-libs/gtk+
    selected: 1.2.10-r11
   protected: 2.6.10-r1
     omitted: none

sys-devel/automake
    selected: 1.5 1.6.3 1.7.9-r1 1.4_p6 1.8.5-r3
   protected: 1.9.6-r1
     omitted: none

sys-devel/autoconf
    selected: 2.13
   protected: 2.59-r6
     omitted: none


  But "emerge --pretend --emptytree xmms" on my system wants (amongst
other things)...

[ebuild  N    ] sys-devel/autoconf- 2.13
[ebuild  N    ] sys-devel/autoconf-2.59-r6

[ebuild  N    ] sys-devel/automake-1.5
[ebuild  N    ] sys-devel/automake-1.8.5-r3
[ebuild  N    ] sys-devel/automake-1.6.3
[ebuild  N    ] sys-devel/automake- 1.7.9-r1
[ebuild  N    ] sys-devel/automake-1.4_p6
[ebuild  N    ] sys-devel/automake-wrapper-1-r1
[ebuild  N    ] sys-devel/automake-1.9.6-r1

[ebuild  N    ] x11-libs/gtk+-1.2.10-r11

  That's just 1 app.  I'm sure there are others that would experience
similar breakage.  If you "emerge --pretend --emptytree --world" and an
old version listed for deletion by --prune does *NOT* show up, you'll
probably be safe removing it.  Maybe "emerge --pretend --prune" needs to
run "emerge --pretend --emptytree --world" by default, and use its
output as a sanity-check before recommending deletions.

--
Walter Dnes <[EMAIL PROTECTED] > In linux /sbin/init is Job #1
My musings on technology and security at http://tech_sec.blog.ca
--
gentoo-user@gentoo.org mailing list


Reply via email to