Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

Script to remove all installed kernels but the newest one and the currently running.

Installation

cd /usr/local
git clone https://github.com/plepe/kernel-clean.git
ln -s /usr/local/kernel-clean/kernel-clean /usr/local/bin/

Execution

Run kernel-clean to remove old kernels. You can add the -y command line option which gets passed to apt-get and means "Assume Yes to all queries and do not prompt".

Automation

One way to automate the clean up is by executing kernel-clean -y automatically by cron every once in a while, for example once per week: ln -s /usr/local/kernel-clean/kernel-clean.hook /etc/cron.weekly/kernel-clean

Contributors

  • Stephan Bösch-Plepelits @plepe
  • Stefan Tauner @stefanct

About

Removes all linux kernels on a machine but the currently running one and the newest installed. Debian/Ubuntu.

Resources

Releases

No releases published

Packages

No packages published

Languages