* [gentoo-user] why my system is keeping old kernel around?
@ 2013-04-28 1:19 Joseph
2013-04-28 1:30 ` Canek Peláez Valdés
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Joseph @ 2013-04-28 1:19 UTC (permalink / raw
To: gentoo-user
When I run depclean, it prints out:
sys-kernel/gentoo-sources
selected: 3.6.11
protected: none
omitted: 2.6.31-r6 2.6.36-r5 3.7.10-r1
ll /usr/src/
lrwxrwxrwx 1 root root 19 Feb 26 12:35 linux -> linux-3.6.11-gentoo
The system is using kernel 3.6.11; so I'll keep it.
But why it tries to keep older kernels: 2.6.31-r6 2.6.36-r5 ?
--
Joseph
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] why my system is keeping old kernel around?
2013-04-28 1:19 [gentoo-user] why my system is keeping old kernel around? Joseph
@ 2013-04-28 1:30 ` Canek Peláez Valdés
2013-04-28 8:29 ` Neil Bothwick
2013-04-28 9:35 ` Alan McKinnon
2 siblings, 0 replies; 7+ messages in thread
From: Canek Peláez Valdés @ 2013-04-28 1:30 UTC (permalink / raw
To: gentoo-user
On Sat, Apr 27, 2013 at 8:19 PM, Joseph <syscon780@gmail.com> wrote:
> When I run depclean, it prints out:
>
> sys-kernel/gentoo-sources
> selected: 3.6.11 protected: none omitted: 2.6.31-r6 2.6.36-r5
> 3.7.10-r1
>
> ll /usr/src/
> lrwxrwxrwx 1 root root 19 Feb 26 12:35 linux -> linux-3.6.11-gentoo
>
> The system is using kernel 3.6.11; so I'll keep it.
> But why it tries to keep older kernels: 2.6.31-r6 2.6.36-r5 ?
If you ran emerge --depclean, the older kernels are not there; only
the files created when you compiled them (*.o, *.ko, vmlinuz, stuff
like that).
You can rm -rf the old versions safely.
Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] why my system is keeping old kernel around?
2013-04-28 1:19 [gentoo-user] why my system is keeping old kernel around? Joseph
2013-04-28 1:30 ` Canek Peláez Valdés
@ 2013-04-28 8:29 ` Neil Bothwick
2013-04-28 16:06 ` Randy Barlow
2013-04-28 9:35 ` Alan McKinnon
2 siblings, 1 reply; 7+ messages in thread
From: Neil Bothwick @ 2013-04-28 8:29 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 480 bytes --]
On Sat, 27 Apr 2013 19:19:49 -0600, Joseph wrote:
> sys-kernel/gentoo-sources
> selected: 3.6.11
> protected: none
> omitted: 2.6.31-r6 2.6.36-r5 3.7.10-r1
Do you have them in your world file?
grep gentoo-sources /var/lib/portage/world
If not, "emerge -cpv gentoo-sources-2.6.31-r6" will tell you why it is
wanted.
--
Neil Bothwick
Never argue with an idiot. First, they bring you down to their level.
Then they beat you with experience.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] why my system is keeping old kernel around?
2013-04-28 1:19 [gentoo-user] why my system is keeping old kernel around? Joseph
2013-04-28 1:30 ` Canek Peláez Valdés
2013-04-28 8:29 ` Neil Bothwick
@ 2013-04-28 9:35 ` Alan McKinnon
2 siblings, 0 replies; 7+ messages in thread
From: Alan McKinnon @ 2013-04-28 9:35 UTC (permalink / raw
To: gentoo-user
On 28/04/2013 03:19, Joseph wrote:
> When I run depclean, it prints out:
>
> sys-kernel/gentoo-sources
> selected: 3.6.11 protected: none omitted: 2.6.31-r6 2.6.36-r5
> 3.7.10-r1
>
> ll /usr/src/
> lrwxrwxrwx 1 root root 19 Feb 26 12:35 linux -> linux-3.6.11-gentoo
>
> The system is using kernel 3.6.11; so I'll keep it.
> But why it tries to keep older kernels: 2.6.31-r6 2.6.36-r5 ?
Those kernels are in world. Check the contents of /var/lib/portage/world.
You deleted /usr/src/<stuff>, that doesn't change in any way what
portage think you have installed, only --depclean or emerge -C does that
--
Alan McKinnon
alan.mckinnon@gmail.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] why my system is keeping old kernel around?
2013-04-28 8:29 ` Neil Bothwick
@ 2013-04-28 16:06 ` Randy Barlow
2013-04-28 16:47 ` Alan McKinnon
0 siblings, 1 reply; 7+ messages in thread
From: Randy Barlow @ 2013-04-28 16:06 UTC (permalink / raw
To: gentoo-user
On Sun, 2013-04-28 at 09:29 +0100, Neil Bothwick wrote:
> Do you have them in your world file?
I've noticed a few time before that gentoo-sources occasionally ends up
in my world file with a specific version (rather than just being
unversioned, like most packages in world). This will cause depclean to
leave those versions installed.
I've never determined what I am doing that causes that to get there with
the specific version, but I've noticed it gets in there sometimes. I
just remove it from the file and continue, but perhaps one day I'll
figure out when (and why) it's getting in there in the first place.
--
Randy Barlow
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] why my system is keeping old kernel around?
2013-04-28 16:06 ` Randy Barlow
@ 2013-04-28 16:47 ` Alan McKinnon
2013-04-28 17:51 ` Randy Barlow
0 siblings, 1 reply; 7+ messages in thread
From: Alan McKinnon @ 2013-04-28 16:47 UTC (permalink / raw
To: gentoo-user
On 28/04/2013 18:06, Randy Barlow wrote:
> On Sun, 2013-04-28 at 09:29 +0100, Neil Bothwick wrote:
>> Do you have them in your world file?
>
> I've noticed a few time before that gentoo-sources occasionally ends up
> in my world file with a specific version (rather than just being
> unversioned, like most packages in world). This will cause depclean to
> leave those versions installed.
>
> I've never determined what I am doing that causes that to get there with
> the specific version, but I've noticed it gets in there sometimes. I
> just remove it from the file and continue, but perhaps one day I'll
> figure out when (and why) it's getting in there in the first place.
>
By far the most likely cause is you type
emerge =gentoo-sources-<something>
and forget to use the -1 option. It's the same thing that results in
packages called *lib* in world
--
Alan McKinnon
alan.mckinnon@gmail.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] why my system is keeping old kernel around?
2013-04-28 16:47 ` Alan McKinnon
@ 2013-04-28 17:51 ` Randy Barlow
0 siblings, 0 replies; 7+ messages in thread
From: Randy Barlow @ 2013-04-28 17:51 UTC (permalink / raw
To: gentoo-user
On Sun, 2013-04-28 at 18:47 +0200, Alan McKinnon wrote:
> By far the most likely cause is you type
>
> emerge =gentoo-sources-<something>
>
> and forget to use the -1 option. It's the same thing that results in
> packages called *lib* in world
Yeah, I knew that doing this would cause what I was talking about, but I
don't recall ever having using a specific version in a kernel emerge
command. I guess it's possible I just don't remember doing it, but it
happens often enough that I don't think this is why.
I'll try to pay attention to the contents of world and see if I can
pinpoint an action that is doing this. Thanks!
--
Randy Barlow
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-04-28 17:52 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-28 1:19 [gentoo-user] why my system is keeping old kernel around? Joseph
2013-04-28 1:30 ` Canek Peláez Valdés
2013-04-28 8:29 ` Neil Bothwick
2013-04-28 16:06 ` Randy Barlow
2013-04-28 16:47 ` Alan McKinnon
2013-04-28 17:51 ` Randy Barlow
2013-04-28 9:35 ` Alan McKinnon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox