Created
May 25, 2013 11:52
-
-
Save mauromorales/5648838 to your computer and use it in GitHub Desktop.
Clean up old linux kernels WARNING: ONLY RUN AFTER UPDATING, UPGRADING AND REBOOTING SUCCESSFULLY taken from: http://askubuntu.com/questions/89710/how-do-i-free-up-more-space-in-boot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# clean up old kernels | |
# WARNING: ONLY RUN AFTER UPDATING, UPGRADING AND REBOOTING SUCCESSFULLY | |
sudo apt-get purge $(dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve "$(uname -r | sed -r 's/-[a-z]+//')") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment