getting rid of a configured and installed kernel on 10.04?

Nils Kassube kassube at gmx.net
Thu Aug 5 21:26:06 UTC 2010


Robert P. J. Day wrote:
>   i just want to verify this since i'm still not as familiar with
> grub 2 as i'd like to be.  if i've configured and installed a new
> kernel on my system, and i eventually want to get rid of all traces
> of it, as i read it, all i need to do is go into /boot, delete all
> associated components, then
> 
>   $ sudo update-grub
> 
> will that do it?  or am i missing something?  thanks.

It depends on the way you installed your kernel. If you made your own 
kernel and installed just the files with "make install" etc. and 
generated the initramfs, then I think that would be the way to go. But 
don't forget that there are also modules at "/lib/modules/$(uname -r)/" 
(unless you made a kernel without modules).

However if you installed *.deb files via the package management (dpkg, 
apt-get, ...), you should also uninstall it via the package management. 
Otherwise the package database still has the entry while the actual 
kernel files are gone. And if you uninstall via the package management, 
the update-grub step should be done automatically.


Nils




More information about the ubuntu-users mailing list