public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] orphaned kernel sources?
@ 2005-10-29 15:49 Jarry
  2005-10-29 16:41 ` joachim.fasting
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Jarry @ 2005-10-29 15:49 UTC (permalink / raw
  To: gentoo-user


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?

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? 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").
So can I leave "emerge --prune" to do its job without breaking
some dependencies? At least for automake and autoconf?

Jarry
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] orphaned kernel sources?
  2005-10-29 15:49 [gentoo-user] orphaned kernel sources? Jarry
@ 2005-10-29 16:41 ` joachim.fasting
  2005-10-29 17:00 ` Richard Fish
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: joachim.fasting @ 2005-10-29 16:41 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1823 bytes --]

I think you can safely remove the orphaned folders, because anything that
needs the kernel source to compile, does so with the sources contained
within the folder that the /usr/src/linux symlink points to (make sure
it points to the kernel you're currently using).
Check out /lib/modules for orphaned folders as well.
To rebuild any packages that were compiled against an older kernel source, 
either use module-rebuild to update them (emerge module-rebuild)
, or run "emerge -va $(equery b /lib/modules | sed -e 's:^:>=:' )",
without the quotes.

On 17:49 lør 29 okt     , 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?
> 
> 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? 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").
> So can I leave "emerge --prune" to do its job without breaking
> some dependencies? At least for automake and autoconf?
> 
> Jarry
> -- 

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] orphaned kernel sources?
  2005-10-29 15:49 [gentoo-user] orphaned kernel sources? Jarry
  2005-10-29 16:41 ` joachim.fasting
@ 2005-10-29 17:00 ` Richard Fish
  2005-10-29 18:43 ` A. Khattri
  2005-10-29 19:59 ` Hemmann, Volker Armin
  3 siblings, 0 replies; 8+ messages in thread
From: Richard Fish @ 2005-10-29 17:00 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] orphaned kernel sources?
  2005-10-29 15:49 [gentoo-user] orphaned kernel sources? Jarry
  2005-10-29 16:41 ` joachim.fasting
  2005-10-29 17:00 ` Richard Fish
@ 2005-10-29 18:43 ` A. Khattri
  2005-10-29 23:45   ` Walter Dnes
  2005-10-29 19:59 ` Hemmann, Volker Armin
  3 siblings, 1 reply; 8+ messages in thread
From: A. Khattri @ 2005-10-29 18:43 UTC (permalink / raw
  To: gentoo-user

On Sat, 29 Oct 2005, 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)

Bear in mind, that if you've built kernels inside these folders then there
are object files, libraries and other debris from the build process that
portage knows nothing about - so unmerging doesn't remove the folder
completely.

The thing to do is to cd into each folder and do "make clean" to remove
files left over from the build process. Then run the emerge command to
remove the package.


-- 

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] orphaned kernel sources?
  2005-10-29 15:49 [gentoo-user] orphaned kernel sources? Jarry
                   ` (2 preceding siblings ...)
  2005-10-29 18:43 ` A. Khattri
@ 2005-10-29 19:59 ` Hemmann, Volker Armin
  3 siblings, 0 replies; 8+ messages in thread
From: Hemmann, Volker Armin @ 2005-10-29 19:59 UTC (permalink / raw
  To: gentoo-user

On Saturday 29 October 2005 17:49, 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 unmerge elderly kernel sources as you want to,  but it is faster 
to delete the directories first and than unmerginf
>
> 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? 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").
> So can I leave "emerge --prune" to do its job without breaking
> some dependencies? At least for automake and autoconf?

no!

you need several different db, automake and autoconf versions. Removing them 
will break your system in horrible ways! Do not touch them!
They are very much needed. Let them stay and do not disturb them.

Removing freetype will not break your system, but some apps may start to look 
extremly ugly ;)
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] orphaned kernel sources?
  2005-10-29 18:43 ` A. Khattri
@ 2005-10-29 23:45   ` Walter Dnes
  2005-10-30  0:29     ` Peter Ruskin
  2005-10-30  0:59     ` Nick Rout
  0 siblings, 2 replies; 8+ messages in thread
From: Walter Dnes @ 2005-10-29 23:45 UTC (permalink / raw
  To: gentoo-user

  I checked, and find that I can't unmerge *ANY* of the sources,
including the current linux-2.6.13-gentoo-r3.  What's wrong with my
syntax???

[m3000][root][~] ll /usr/src/
total 11
drwxr-xr-x   5  264 Oct 16 21:58 .
drwxr-xr-x  18  536 Oct  4 16:34 ..
-rw-r--r--   1    0 Aug 30 18:33 .keep
lrwxrwxrwx   1   22 Oct 16 21:58 linux -> linux-2.6.13-gentoo-r3
drwxr-xr-x  18  632 Sep  9 21:24 linux-2.6.12-gentoo-r10
drwxr-xr-x  19 1280 Sep  7 23:33 linux-2.6.12-gentoo-r9
drwxr-xr-x  19 1280 Oct 16 22:10 linux-2.6.13-gentoo-r3
-rwxr--r--   1  213 Aug 31 16:17 makeover
-rwxr--r--   1  208 Aug 31 16:17 promote
[m3000][root][~] emerge --pretend --unmerge linux-2.6.13-gentoo-r3

>>> These are the packages that I would unmerge:

--- Couldn't find linux-2.6.13-gentoo-r3 to unmerge.

>>> unmerge: No packages selected for removal.


-- 
Walter Dnes <waltdnes@waltdnes.org> In linux /sbin/init is Job #1
My musings on technology and security at http://tech_sec.blog.ca
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] orphaned kernel sources?
  2005-10-29 23:45   ` Walter Dnes
@ 2005-10-30  0:29     ` Peter Ruskin
  2005-10-30  0:59     ` Nick Rout
  1 sibling, 0 replies; 8+ messages in thread
From: Peter Ruskin @ 2005-10-30  0:29 UTC (permalink / raw
  To: gentoo-user

On Sunday 30 October 2005 00:45, Walter Dnes wrote:
>   I checked, and find that I can't unmerge *ANY* of the sources,
> including the current linux-2.6.13-gentoo-r3.  What's wrong with
> my syntax???
>
> [m3000][root][~] ll /usr/src/
> total 11
> drwxr-xr-x   5  264 Oct 16 21:58 .
> drwxr-xr-x  18  536 Oct  4 16:34 ..
> -rw-r--r--   1    0 Aug 30 18:33 .keep
> lrwxrwxrwx   1   22 Oct 16 21:58 linux -> linux-2.6.13-gentoo-r3
> drwxr-xr-x  18  632 Sep  9 21:24 linux-2.6.12-gentoo-r10
> drwxr-xr-x  19 1280 Sep  7 23:33 linux-2.6.12-gentoo-r9
> drwxr-xr-x  19 1280 Oct 16 22:10 linux-2.6.13-gentoo-r3
> -rwxr--r--   1  213 Aug 31 16:17 makeover
> -rwxr--r--   1  208 Aug 31 16:17 promote
> [m3000][root][~] emerge --pretend --unmerge
> linux-2.6.13-gentoo-r3
>
> >>> These are the packages that I would unmerge:
>
> --- Couldn't find linux-2.6.13-gentoo-r3 to unmerge.
>
> >>> unmerge: No packages selected for removal.
>
emerge -Cp gentoo-sources-2.6.13-r3

-- 
Peter
========================================================================
Gentoo Linux: Portage 2.0.51.22-r3.	kernel-2.6.13-gentoo-r4.
i686 AMD Athlon(tm) XP 3200+.		gcc(GCC): 3.3.5-20050130.
KDE: 3.4.3.				Qt: 3.3.4.
========================================================================
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] orphaned kernel sources?
  2005-10-29 23:45   ` Walter Dnes
  2005-10-30  0:29     ` Peter Ruskin
@ 2005-10-30  0:59     ` Nick Rout
  1 sibling, 0 replies; 8+ messages in thread
From: Nick Rout @ 2005-10-30  0:59 UTC (permalink / raw
  To: gentoo-user


On Sat, 29 Oct 2005 19:45:31 -0400
Walter Dnes wrote:

> [m3000][root][~] emerge --pretend --unmerge linux-2.6.13-gentoo-r3
> 
> >>> These are the packages that I would unmerge:
> 
> --- Couldn't find linux-2.6.13-gentoo-r3 to unmerge.
> 
> >>> unmerge: No packages selected for removal.


thats because the package name is gentoo-sources-2.6.13-r3 not linux-2.6.13-gentoo-r3



-- 
Nick Rout <nick@rout.co.nz>

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-10-30  1:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-29 15:49 [gentoo-user] orphaned kernel sources? Jarry
2005-10-29 16:41 ` joachim.fasting
2005-10-29 17:00 ` Richard Fish
2005-10-29 18:43 ` A. Khattri
2005-10-29 23:45   ` Walter Dnes
2005-10-30  0:29     ` Peter Ruskin
2005-10-30  0:59     ` Nick Rout
2005-10-29 19:59 ` Hemmann, Volker Armin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox