Last active
August 29, 2015 14:20
-
-
Save hsuh/d0e6727e42fc2c504734 to your computer and use it in GitHub Desktop.
Removing old linux images
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
*** 1. Remove --no-act for run the commands for real. | |
*** 2. Find out the range of your kernel version numbers and replace the numbers below. e.g. {start..end} | |
Finding out versions: | |
dpkg -l | grep linux-image | |
Purging the images: | |
sudo dpkg -P --no-act --force-depends linux-image-3.13.0-{32..46}-generic | |
sudo dpkg -P --no-act --force-depends linux-image-extra-3.13.0-{32..46}-generic | |
sudo dpkg -P --no-act --force-depends linux-headers-3.13.0-{32..46}-generic | |
sudo dpkg -P --no-act --force-depends linux-headers-3.13.0-{32..46} | |
Cleaning afterwards: | |
sudo apt-get autoclean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment