Jarry wrote:

So, with your help I finally checked all software installed on my
gentoo-server (thanks to everyone, who replied). There were a few
gentoo-sources (I think 5 or 6 different versions), so I used
"emerge --prune gentoo-sources" to leave only the last one.

Then I checked /usr/src, and I see there are still 2 subdirectories:
linux-2.6.12-gentoo-r6   (~50MB)
linux-2.6.13-gentoo-r5   (~300MB)

I'm surprised there is still 2.6.12-r6, because I unmerged it.
Can I delete it? Will this not break some dependencies?

Yes, you can delete linux-2.6.12-gentoo-r6. This occurs because when you unmerge a package, it only removes the files that were part of that package, in this case, the kernel sources. When you build the kernel, it creates a bunch of .o, .cmd, and .a files that are not removed by portage. So yes, you can remove them without affecting anything.

My guess (based on the size) is that linux-2.6.13-gentoo-r5 is your current sources, so maybe you will want to keep that until your next kernel upgrade.

Moreover, "emerge --pretend --prune" showed I have a few packages
with more than one version:

db (4.2.52_p2 , 1.85-r2)
automake (1.5, 1.6.3, 1.7.9-r1, 1.4_p6, 1.8.5-r3, 1.9.6-r1)
freetype (2.1.9-r1, 1.3.1.-r4)
autoconf (2.13, 2.59-r6)

Can I unmerge all but the last versions?

No. Well, you can...but the next time you do an emerge -Dv world, they will get merged again. Many packages depend upon specific versions of automake and autoconf.
Strange is, emerge does
not always want to leave the last version, for example it has
marked db 4.2.52 as "selected" for unmerge, and 1.85 as "protected"
(similar for freetype, 2.1.9 "selected", 1.3.1 "protected").

In this case, the 'protected' version is whatever was most recently merged, not necessarily the highest version number.

-Richard

--
gentoo-user@gentoo.org mailing list

Reply via email to