We recently received the latest LTS from Ubuntu, a version you will surely have through updates. This will surely have caused sand fill your hard drive with packages and kernels that are not removed. Especially the cores that are still there.
If I know there the autoremove tool to remove unnecessary packagesBut the packages are removed not the old kernels, hence the need for this tool. Also on hard drives like SSDs, the need to free up space is important. Maybe because of all this, Dustin Kirkland, Canonical Worker has created a tool for remove old kernels from our Ubuntu system.
Old cores can be erased to free up hard disk space
The tool we need is in the byobu package, A package found in Ubuntu 16.04, for earlier versions and if you can not install this package, I recommend that you go through the github from the creator where you can get it. Once we have the Byoubu package installed, we have to run the tool and it will take care of removing all the necessary kernels at least the last two, Which are the necessary ones. This system is for security because in case the last one fails, the user will be able to opt for the last one that worked.
Thus, to run the program we must open a terminal and write the following:
sudo apt-get install byobu sudo purge-old-kernels
This will do everything we need. If we also want to save some more kernels, the program has several parameters that will allow us to do this, such as the -keep parameter. All of these parameters are listed on the package man page which you can also view through the synaptic manager.
The truth is that the kernel is one of the most up-to-date parts of UbuntuThis is why if you are coming from Ubuntu 14.04 or Ubuntu 13.10, it is best to run this tool, you will notice how a lot of space is freed up and the system also goes faster. so Why not try it?