Gentoo Archives: gentoo-user

From: Richard Fish <bigfish@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] orphaned kernel sources?
Date: Sat, 29 Oct 2005 17:05:56
Message-Id: 4363AAC8.3000308@asmallpond.org
In Reply to: [gentoo-user] orphaned kernel sources? by Jarry
1 Jarry wrote:
2
3 >So, with your help I finally checked all software installed on my
4 >gentoo-server (thanks to everyone, who replied). There were a few
5 >gentoo-sources (I think 5 or 6 different versions), so I used
6 >"emerge --prune gentoo-sources" to leave only the last one.
7 >
8 >Then I checked /usr/src, and I see there are still 2 subdirectories:
9 >linux-2.6.12-gentoo-r6 (~50MB)
10 >linux-2.6.13-gentoo-r5 (~300MB)
11 >
12 >I'm surprised there is still 2.6.12-r6, because I unmerged it.
13 >Can I delete it? Will this not break some dependencies?
14 >
15 >
16
17 Yes, you can delete linux-2.6.12-gentoo-r6. This occurs because when
18 you unmerge a package, it only removes the files that were part of that
19 package, in this case, the kernel sources. When you build the kernel,
20 it creates a bunch of .o, .cmd, and .a files that are not removed by
21 portage. So yes, you can remove them without affecting anything.
22
23 My guess (based on the size) is that linux-2.6.13-gentoo-r5 is your
24 current sources, so maybe you will want to keep that until your next
25 kernel upgrade.
26
27 >Moreover, "emerge --pretend --prune" showed I have a few packages
28 >with more than one version:
29 >
30 >db (4.2.52_p2 , 1.85-r2)
31 >automake (1.5, 1.6.3, 1.7.9-r1, 1.4_p6, 1.8.5-r3, 1.9.6-r1)
32 >freetype (2.1.9-r1, 1.3.1.-r4)
33 >autoconf (2.13, 2.59-r6)
34 >
35 >Can I unmerge all but the last versions?
36 >
37
38 No. Well, you can...but the next time you do an emerge -Dv world, they
39 will get merged again. Many packages depend upon specific versions of
40 automake and autoconf.
41
42 >Strange is, emerge does
43 >not always want to leave the last version, for example it has
44 >marked db 4.2.52 as "selected" for unmerge, and 1.85 as "protected"
45 >(similar for freetype, 2.1.9 "selected", 1.3.1 "protected").
46 >
47 >
48
49 In this case, the 'protected' version is whatever was most recently
50 merged, not necessarily the highest version number.
51
52 -Richard
53
54 --
55 gentoo-user@g.o mailing list