-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Daniel Barkalow wrote:
> According to the man page, --prune will remove the old version that I want 
> to keep. I want to have 3.4.4-r1 and (currently) 4.2.2, but I don't care 
> about 4.1.2. When 4.2.3 comes out, I'll want that instead of 4.2.2.

The problem is that world atoms are greedy with respect to slots, so
 if you have cross-avr/gcc in world then a global `emerge
- --depclean` will not remove 4.2.2 after 4.2.3 has been installed.
System atoms are not greedy for slots, so you can solve the problem
like this:

mkdir -p /etc/portage/profile
echo "*cross-avr/gcc" >> /etc/portage/profile/packages
echo "*cross-avr/gcc:3.4" >> /etc/portage/profile/packages

That pull the highest available overall and the highest available
from the 3.4 SLOT into your system set (the "packages" file is
documented in `man portage`). Remove the cross-avr/gcc atoms from
/var/lib/portage/world since you won't need them anymore. Once
you've done that, a global `emerge --depclean` should remove
everything except the highest available overall version and the
highest available from the 3.4 SLOT.

Zac
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)

iD8DBQFHGTpe/ejvha5XGaMRAukLAKCkVjyegFQYtE/ZHRPKE1cWfwfsKwCg25L0
TZCq6dvV/itwakHdG9bjKvA=
=G1j+
-----END PGP SIGNATURE-----
-- 
[EMAIL PROTECTED] mailing list

Reply via email to