Recently we’ve been showing show you to upgrade the kernels in Ubuntu. Upgrading the kernels in Ubuntu gives you have access to more features, enables support for newer system’s components, and over time improves your systems’ stability.
The thing you have to remember is Ubuntu keeps multiple Linux Kernel versions and only the most current is active. These kernels are also big files, so if you are low on disk space and not removing older kernels, sooner than later you’ll run out of disk space.
This brief tutorial is going to show you how to properly get rid of older Linux Kernels that your systems no longer need.
There are many ways to remove Linux kernels from Ubuntu, however, always use the correct and proper methods. The method that’s most reliable and efficient is the one you install Ubuntu Tweak, then use it to remove older kernels.
To get started, install Ubuntu Tweak by adding its PPA
sudo add-apt-repository ppa:tualatrix/ppa
Finally, run the commands below to install Ubuntu Tweak
sudo apt-get update && sudo apt-get install ubuntu-tweak
After installing, open Ubuntu Tweak from Dash and go to Janitor tab and select ‘Older Kernel’ and remove them
That’s it! This is the safest method around.
You can then uninstall Ubuntu Tweak and its PPA by running the commands below
sudo apt-get purge ubuntu-tweak
Remove the PPA
sudo add-apt-repository --remove ppa:tualatrix/ppa