Remove old kernels in Ubuntu
From time to time, you should clean out your Linux system, especially when that boot partition gets full again.
and hit enter. This will show you the kernel you are running, this is the one you must not remove.
dpkg --list | grep linux-image
to see a list of all linux kernels on your system.
sudo apt-get purge linux-image-x.x.x.x-generic
and replace x.x.x.x with the kernel version you want to remove and hit enter.
to update your grub loader.
Done, your Ubuntu is now cleaned of old kernels.
Note: Other Linux distributions (especially those based on Debian) will react similar, but Ubuntu is the one I tried.
Was this article helpful? Then please donate to keep The IT Community alive...
If you found this article helpful please share it, comment and help others by writing your own article.
Translate this page:
Articles found in the same category: