Created
October 24, 2014 12:33
-
-
Save chluehr/a5e263ab21400b5bce19 to your computer and use it in GitHub Desktop.
removes/uninstalls/cleans all unused kernes from a system. use with caution!
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
#!/bin/bash | |
dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve $kernelver |xargs sudo apt-get purge -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment