Skip to content

jdinkel/rbCleanupUbuntuKernels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

rbCleanupUbuntuKernels

Remove any old unused kernel installs

Turns out there is already a tool for this in the universe repo:

sudo aptitude install bikeshed

Then put this in a file in /etc/cron.monthly/ (or .weekly or .daily, depending on how often you want it, but monthly for cleaning out the kernels should be plenty):

#!/bin/bash

#optional:
aptitude update
aptitude full-upgrade -y

purge-old-kernels -y
apt-get autoremove -y

If this computer does not run 24/7, install anacron to make sure the cron.monthly scripts get run.

About

Remove any old unused kernel installs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages