Skip to content

Instantly share code, notes, and snippets.

@dchapkine
Created December 9, 2016 13:50
Show Gist options
  • Save dchapkine/5df40ffff5571c91f967337a6d7c80b1 to your computer and use it in GitHub Desktop.
Save dchapkine/5df40ffff5571c91f967337a6d7c80b1 to your computer and use it in GitHub Desktop.
Free space on /boot aka remove old kernels on ubuntu
# List all kernels installed
```
dpkg -l linux-image-\* | grep ^ii
```
# Remove old kernels
```
sudo apt-get purge linux-image-3.0.0-12 linux
```
Obviously be careful, not removing the kernel yo are running. To see what kernel you are using, run `uname -a`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment