Last active
August 29, 2015 14:19
-
-
Save neuni/c8e32b58f2d231feb3ea to your computer and use it in GitHub Desktop.
Revisions
-
neuni renamed this gist
Apr 13, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
neuni revised this gist
Apr 13, 2015 . 1 changed file with 11 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,18 @@ First check your current version. ``` uname -a ``` Then run the following command: ``` dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' ``` This command will list all packages that you no longer need. So for every package listed do the following: ``` sudo apt-get -y purge some-kernel-package ``` -
neuni created this gist
Apr 13, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ First check `uname -a` to check your current version. Then run the following command: `dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d'` This command will list all packages that you no longer need. So for every package listed do the following: `sudo apt-get -y purge some-kernel-package`