Re: [gentoo-user] why my system is keeping old kernel around?
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. signature.asc Description: PGP signature
Re: [gentoo-user] why my system is keeping old kernel around?
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.mckin...@gmail.com
Re: [gentoo-user] why my system is keeping old kernel around?
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
Re: [gentoo-user] why my system is keeping old kernel around?
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.mckin...@gmail.com
Re: [gentoo-user] why my system is keeping old kernel around?
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
[gentoo-user] why my system is keeping old kernel around?
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
Re: [gentoo-user] why my system is keeping old kernel around?
On Sat, Apr 27, 2013 at 8:19 PM, Joseph syscon...@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