Remove Older Linux Kernel Headers And Images From Ubuntu 2


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

 

linux_older_kernel-ubuntu

 

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

 

Enjoy!


Please share if you like it on:



Leave a Comment

Your email address will not be published. Required fields are marked *

2 thoughts on “Remove Older Linux Kernel Headers And Images From Ubuntu

  • Satander Singh Rawat

    202% Great help. I do it on my dual pc & found it absolutely correct. Must for del older kernels.
    1. install Ubuntu Tweak by adding its PPA
    sudo add-apt-repository ppa:tualatrix/ppa
    2. Finally, run the commands below to install Ubuntu Tweak
    sudo apt-get update && sudo apt-get install ubuntu-tweak
    3. check your system setting there you will find Ubuntu Tweak
    4. start Ubuntu tweak to remove temp files as well as older kernels.
    5 no need to uninstall Ubuntu Tweak.