Created
September 26, 2015 22:30
-
-
Save jespernohr/8c70aa5f113b5c8b7b27 to your computer and use it in GitHub Desktop.
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
# First check your kernel version, so you won't delete the in-use kernel image, running: | |
uname -r | |
# Now run this command for a list of installed kernels: | |
sudo dpkg --list 'linux-image*' | |
# and delete the kernels you don't want/need anymore by running this: | |
sudo apt-get remove linux-image-VERSION | |
# Replace VERSION with the version of the kernel you want to remove. | |
# When you're done removing the older kernels, you can run this to remove ever packages you won't need anymore: | |
sudo apt-get autoremove | |
# And finally you can run this to update grub kernel list: | |
sudo update-grub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment