1 |
I think you can safely remove the orphaned folders, because anything that |
2 |
needs the kernel source to compile, does so with the sources contained |
3 |
within the folder that the /usr/src/linux symlink points to (make sure |
4 |
it points to the kernel you're currently using). |
5 |
Check out /lib/modules for orphaned folders as well. |
6 |
To rebuild any packages that were compiled against an older kernel source, |
7 |
either use module-rebuild to update them (emerge module-rebuild) |
8 |
, or run "emerge -va $(equery b /lib/modules | sed -e 's:^:>=:' )", |
9 |
without the quotes. |
10 |
|
11 |
On 17:49 lør 29 okt , Jarry wrote: |
12 |
> |
13 |
> So, with your help I finally checked all software installed on my |
14 |
> gentoo-server (thanks to everyone, who replied). There were a few |
15 |
> gentoo-sources (I think 5 or 6 different versions), so I used |
16 |
> "emerge --prune gentoo-sources" to leave only the last one. |
17 |
> |
18 |
> Then I checked /usr/src, and I see there are still 2 subdirectories: |
19 |
> linux-2.6.12-gentoo-r6 (~50MB) |
20 |
> linux-2.6.13-gentoo-r5 (~300MB) |
21 |
> |
22 |
> I'm surprised there is still 2.6.12-r6, because I unmerged it. |
23 |
> Can I delete it? Will this not break some dependencies? |
24 |
> |
25 |
> Moreover, "emerge --pretend --prune" showed I have a few packages |
26 |
> with more than one version: |
27 |
> |
28 |
> db (4.2.52_p2 , 1.85-r2) |
29 |
> automake (1.5, 1.6.3, 1.7.9-r1, 1.4_p6, 1.8.5-r3, 1.9.6-r1) |
30 |
> freetype (2.1.9-r1, 1.3.1.-r4) |
31 |
> autoconf (2.13, 2.59-r6) |
32 |
> |
33 |
> Can I unmerge all but the last versions? Strange is, emerge does |
34 |
> not always want to leave the last version, for example it has |
35 |
> marked db 4.2.52 as "selected" for unmerge, and 1.85 as "protected" |
36 |
> (similar for freetype, 2.1.9 "selected", 1.3.1 "protected"). |
37 |
> So can I leave "emerge --prune" to do its job without breaking |
38 |
> some dependencies? At least for automake and autoconf? |
39 |
> |
40 |
> Jarry |
41 |
> -- |