os/Linux

how to delete unused linux kernel

cskimair 2018. 2. 19. 20:33



- how to delete unused kernel

> url: https://askubuntu.com/questions/2793/how-do-i-remove-old-kernel-versions-to-clean-up-the-boot-menu

Open terminal and check your current kernel:

uname -r 

DO NOT REMOVE THIS KERNEL!

Next, type the command below to view/list all installed kernels on your system.

dpkg --list | grep linux-image 

Find all the kernels that lower than your current kernel. When you know which kernel to remove, continue below to remove it. Run the commands below to remove the kernel you selected.

sudo apt-get purge linux-image-x.x.x-x-generic 

Finally, run the commands below to update grub2

sudo update-grub2 
Reboot your system

 




- GUI way for managing unused linux kernel

> http://ubuntuhandbook.org/index.php/2014/04/install-grub-customizer-ubuntu-1404/


> https://askubuntu.com/questions/119080/how-to-update-kernel-to-the-latest-mainline-version-without-any-distro-upgrade