Skip to content

Instantly share code, notes, and snippets.

@woods
Created October 6, 2018 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woods/a4181a2e5bd9064526ae88e8e1ae09a3 to your computer and use it in GitHub Desktop.
Save woods/a4181a2e5bd9064526ae88e8e1ae09a3 to your computer and use it in GitHub Desktop.
Selectively remove old kernels and source
for n in 57 61 68 77 79 83 85 86 87 88 91 92 93 95 96 98 100 101 103 105 106 107 108 109 110 111 112 113 115 116
do
apt-get purge -y \
linux-headers-3.13.0-$n \
linux-headers-3.13.0-${n}-generic \
linux-image-3.13.0-${n}-generic \
linux-image-extra-3.13.0-${n}-generic
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment