sudo apt-get remove --purge $(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d')
Created
August 11, 2015 05:19
-
-
Save xemoe/e5f3f2faa036afe75a32 to your computer and use it in GitHub Desktop.
Remove old kernel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment