Kernel – How to Remove Compiled Kernel

kernelsoftware-uninstall

I installed 14.10 on my laptop Lenovo E455.

And compiled kernel 3.19 with following order

since it seemed that 14.10 doesn't want to work with mine.(I saw slow motions)

Downloaded current kernel from http://www.kernel.org/

make oldconfig
make
sudo make install

Finally, failed to boot with new kernel.

How can I remove the compiled kernel from grub and get recovered?

Best Answer

If compiled and installed via make install, you will need to manually remove the following entries:

/boot/vmlinuz*KERNEL-VERSION*
/boot/initrd*KERNEL-VERSION*
/boot/System-map*KERNEL-VERSION*
/boot/config-*KERNEL-VERSION*
/lib/modules/*KERNEL-VERSION*/
/var/lib/initramfs/*KERNEL-VERSION*/

Then update the grub configuration:

sudo update-grub2

If compiled via the debian method, you can see the installed kernel with the following:

dpkg --list | grep kernel-image

And then uninstall the desired kernel package with apt-get:

sudo apt-get remove kernel-image-your-kernel-image
Related Question