How to Remove Old Kernals from Debian Ubuntu

Profile pictureRocktim Saikia/1 min read

To check the available installed kernels in your debian machine run the following command:

dpkg -l | grep linux-image

To check the currently used kernel version you can run:

uname -r

To remove the all the unused kernels you can simply run:

sudo apt-get autoremove --purge

To remove a specific kernel version, you can run:

sudo apt-get purge linux-image-5.8.0-43-generic