Gentoo Archives: gentoo-user

From: Jarry <mr.jarry@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to get rid of old gcc?
Date: Thu, 10 Jan 2013 18:42:25
Message-Id: 50EF0AF8.1070906@gmail.com
In Reply to: Re: [gentoo-user] How to get rid of old gcc? by Florian Philipp
1 On 10-Jan-13 19:21, Florian Philipp wrote:
2 > Am 10.01.2013 19:06, schrieb Paul Hartman:
3 >> On Thu, Jan 10, 2013 at 10:59 AM, Jarry <mr.jarry@×××××.com> wrote:
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 >>> [IP-] [ ] sys-devel/gcc-4.5.4:4.5
10 >>> [IP-] [ ] sys-devel/gcc-4.6.3:4.6
11 >>
12 >> If they are in slots, the newer version won't necessarily obsolete the
13 >> older version.
14 >>
15 >> You can use "emerge --depclean -p -v gcc:4.5" to view any remaining
16 >> dependencies on that slotted version.
17 >>
18 >> You can use "emerge -C gcc:4.5" to remove only that slot's version of gcc.
19 >
20 > Even better:
21 > emerge -av --depclean gcc:4.5
22 >
23 > This will unmerge the gcc slot if and only if there is no dependency.
24 >
25 > My guess is you have sys-devel/gcc:4.5 in your world file and not just
26 > sys-devel/gcc and that's the reason why depclean won't clean it up.
27
28 Well, I have *both* sys-devel/gcc *and* sys-devel/gcc:4.5 in
29 /var/lib/portage/world, but how did this happen? I have never
30 put it there! I did not install gcc, I think it came as part
31 of stage3 (system), so why is it suddenly in my world-file?
32
33 Jarry
34 --
35 _______________________________________________________________
36 This mailbox accepts e-mails only from selected mailing-lists!
37 Everything else is considered to be spam and therefore deleted.

Replies

Subject Author
Re: [gentoo-user] How to get rid of old gcc? Florian Philipp <lists@×××××××××××.net>