Cleanup old kernels Ubuntu

Cleanup old kernels and headers Ubuntu

Ubuntu 15.10 and below:

I find this to be the easiest and quickest way. It keeps the latest kernel as well as two more:
sudo apt-get install bikeshed
sudo purge-old-kernels
To change the number of additional kernels that are kept:
sudo purge-old-kernels --keep 3

Comments

Popular posts from this blog

Sites, Newsletters, and Blogs

Oracle JDBC ReadTimeout QueryTimeout

Locks held on Oracle for hours after sessions abnormally terminated by node failure