Gentoo Archives: gentoo-user

From: Florian Philipp <lists@×××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to get rid of old gcc?
Date: Thu, 10 Jan 2013 18:23:24
Message-Id: 50EF06A9.7040309@binarywings.net
In Reply to: Re: [gentoo-user] How to get rid of old gcc? by Paul Hartman
1 Am 10.01.2013 19:06, schrieb Paul Hartman:
2 > On Thu, Jan 10, 2013 at 10:59 AM, Jarry <mr.jarry@×××××.com> wrote:
3 >> Hi Gentoo users,
4 >>
5 >> I just updated gcc from 4.5.4 to 4.6.3, switched compiler
6 >> version, rebuilt libtool, but "emerge --depclean" still
7 >> does not want to remove old gcc. "equery list gcc" shows
8 >> both are still installed:
9 >>
10 >> [IP-] [ ] sys-devel/gcc-4.5.4:4.5
11 >> [IP-] [ ] sys-devel/gcc-4.6.3:4.6
12 >>
13 >> So how can I now remove the old gcc? I checked again
14 >> "Gentoo GCC Upgrade Guide", but did not find a single
15 >> word about it...
16 >
17 > If they are in slots, the newer version won't necessarily obsolete the
18 > older version.
19 >
20 > You can use "emerge --depclean -p -v gcc:4.5" to view any remaining
21 > dependencies on that slotted version.
22 >
23 > You can use "emerge -C gcc:4.5" to remove only that slot's version of gcc.
24 >
25
26 Even better:
27 emerge -av --depclean gcc:4.5
28
29 This will unmerge the gcc slot if and only if there is no dependency.
30
31 My guess is you have sys-devel/gcc:4.5 in your world file and not just
32 sys-devel/gcc and that's the reason why depclean won't clean it up.
33
34 Regards,
35 Florian Philipp

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] How to get rid of old gcc? Jarry <mr.jarry@×××××.com>