remove default kernel?

On Saturday I ran online update, which included a kernel update (now 2.6.31.8-0.1.1 x86_64). Afterwards, I set out to recompile the VMWare module, as is always required, but it complained about not finding the kernel headers for the “desktop” kernel. I have not paid a great deal of attention to the kernel since installing 11.2, but I had assumed that I was running the “default” kernel. Maybe not.

Anyway, at some point I installed the default kernel in an attempt to solve the kernel header problem, and not I have both the default and desktop kernels installed. I am booting to the desktop kernel.

I only want the desktop kernel installed, but if I tried to remove the default kernel through yast it insists on installing the “default-base” package, whatever that is. I’m confused about that, as there is also a “desktop-base” package.

Anyway, what packages do I need installed to run with the desktop kernel (only)?

After solving that, I’ll be putting up a thread about the VMWare Workstation issue. :frowning: Thanks!

Open a terminal and post result of this

rpm --query --all '*kernel*'

and

uname -a

Here ya go!


rpm --query --all '*kernel*'
kernel-default-2.6.31.8-0.1.1.x86_64
patterns-openSUSE-devel_kernel-11.2-20.22.1.x86_64
kernel-default-devel-2.6.31.8-0.1.1.x86_64
kernel-desktop-devel-2.6.31.8-0.1.1.x86_64
kernel-firmware-20090821-4.1.noarch
kernel-desktop-2.6.31.8-0.1.1.x86_64
nfs-kernel-server-1.1.3-21.3.1.x86_64
linux-kernel-headers-2.6.31-3.4.noarch
kernel-syms-2.6.31.8-0.1.1.x86_64
kernel-xen-devel-2.6.31.8-0.1.1.x86_64
kernel-debug-devel-2.6.31.8-0.1.1.x86_64
kernel-source-2.6.31.8-0.1.1.noarch


uname -a
Linux linux-7jrk 2.6.31.8-0.1-desktop #1 SMP PREEMPT 2009-12-15 23:55:40 +0100 x86_64 x86_64 x86_64 GNU/Linux

kernel-default-2.6.31.8-0.1.1.x86_64
patterns-openSUSE-devel_kernel-11.2-20.22.1.x86_64
kernel-default-devel-2.6.31.8-0.1.1.x86_64
kernel-desktop-devel-2.6.31.8-0.1.1.x86_64
kernel-firmware-20090821-4.1.noarch
kernel-desktop-2.6.31.8-0.1.1.x86_64
nfs-kernel-server-1.1.3-21.3.1.x86_64
linux-kernel-headers-2.6.31-3.4.noarch
kernel-syms-2.6.31.8-0.1.1.x86_64
kernel-xen-devel-2.6.31.8-0.1.1.x86_64
kernel-debug-devel-2.6.31.8-0.1.1.x86_64
kernel-source-2.6.31.8-0.1.1.noarch

You should be able to remove all the red, unless you know you need any of them??
In software management search for and mark to delete each. In the process ignore all the error boxes, just cancel it and move on until all the above are marked. At this point tell me if when marking the last one in the list still brings an error. You can save the error with the ‘expert’ button and post it here.
Don’t apply this until you confirm with me

There is a problem with the VMware Server install script and the newer kernels. And that is the error that is thrown even if the headers are installed correctly. There is some work arounds and VMware does not seem in a hurry to fix the problem. I simply gave up and installed VirtualBox instead. It works/installs fine in 11.2

If you must use VMware Server then look here in the forms there are several work arounds that seem to work for people. Once installed I hear it runs fine.

Got them all tagged and ready to remove. Software Manager does insist that it is going to install kernel-default-base, though.

Go to the view tab ‘Installation Summary’
and uncheck the kernel-default-base

see what you get then

OK. The kernel-default-base package is being motivated by the nvidia driver. Trying to uninstall the package gives a set of options related to nvidia. Seems like the correct answer is to deinstall nvidia, and the reinstall it with the remaining kernel?

[Actually, I think the nvidia driver is installed for the desktop kernel as well…]

Try that then. Remove all the nvidia packages the same way, see what it does and report back

It seems like the mission has been accomplished. :slight_smile:


rpm --query --all '*kernel*'
kernel-desktop-devel-2.6.31.8-0.1.1.x86_64
kernel-firmware-20090821-4.1.noarch
kernel-desktop-2.6.31.8-0.1.1.x86_64
linux-kernel-headers-2.6.31-3.4.noarch
kernel-source-2.6.31.8-0.1.1.noarch

grub no longer has an entry for the default kernel. The desktop kernel booted normally, with nvidia (I did not have to go back and reinstall it). All seems to be working.

Thanks for your help!

Good news and well done;)

Hello,

I also got a trouble with kernel’s related packages but with versions. I don’t really know how it happened but i have a synchronization between my kernel and kernel headers versions.
rpm --query --all ‘kernel’ gives me :
linux-kernel-headers-2.6.31-3.4.noarch
kernel-source-2.6.31.8-0.1.1.noarch
kernel-default-2.6.31.8-0.1.1.i586
kernel-firmware-20090821-3.1.noarch
nfs-kernel-server-1.1.3-21.3.1.i586

I tried to get linux-kernel-headers-2.6.31.8-0.1.1.noarch.rpm but with no luck.

So is there a place where i can find it ?

Another question is, what is the difference between default and desktop kernel package ?

A last question is why there isn’t kernel-source and kernel-default packages for the 2.6.31-3.4 version ?

Best regards.

The version numbering of the kernel-headers does not run along with the kernel version numbers. The headers are for any 2.6.31 kernel.

The desktop package is optimized for desktop use.

Your last question finds an answer in my first remark.

Thanks for your fast reply.

Thanks to your reply, i just ignored virtualbox and vmware complains about kernel headers and do a make mrproper && make oldconfig && make all in the kernel sources and virtualbox compiled again. Now i just have to try vmware

Thank you again.

If I can jump in here rather than start another thread, I’m wanting to try out the 11.2 desktop kernel rather than the default, which is currently the only one installed. Is the procedure as simple as installing the desktop kernel packages, rebooting and trying it out, and if all works simply removing the default kernel packages, or is it more complex than that? I’ve never done anything like this before so don’t want to screw up a system that’s otherwise running fine.

Yes, it’s as simple as that. You don’t even have to remove the other kernel, you can just make it the non-highlighted choice in the GRUB menu.

Ok thanks, I’ll give it a go.