Last active
September 13, 2016 01:11
-
-
Save WarpEngineer/2aa20dcdcab656461b05 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
List all installed Linux kernel images: | |
dpkg --list | egrep -i --color 'linux-image|linux-headers' | |
Remove a single image: | |
apt-get --purge remove linux-image-... | |
Remove all: | |
apt-get purge $(dpkg --list |egrep 'linux-image-[0-9]' |awk '{print $3,$2}' |sort -nr |tail -n +3 |grep -v $(uname -r) |awk '{ print $2}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment