purge-old-kernels

To remove old kernels installed automatically by software-updater, run the below command :

sudo apt autoremove --purge

To remove manually installed kernels use the utility “purge-old-kernels” in package “bikeshed/byobu” in 16.04 LTS

Install “byobu/bikeshed” and run the command “purge-old-kernels” as below :

sudo apt install byobu man purge-old-kernels sudo purge-old-kernels --keep 3 -qy #keep latest THREE kernels & remove others

 

Refer : http://blog.dustinkirkland.com/2016/06/purge-old-kernels.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s