Created
February 5, 2016 18:19
-
-
Save Khalian/e1b6dac81714793098b0 to your computer and use it in GitHub Desktop.
Run the script with superuser privileges, first argument is the linux kernel version to remove
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
rm -rf "/lib/modules/$1" | |
rm -f "/boot/vmlinuz-$1*" | |
rm -f "/boot/initrd.img-$1*" | |
rm -f "/boot/config-$1*" | |
rm -f "/boot/System.map-$1*" | |
update-grub2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment