Revision: 68261
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 20, 2014 07:16 by garretjames
Initial Code
dpkg --get-selections | \
grep 'linux-image*' | \
awk '{print $1}' | \
egrep -v "linux-image-$(uname -r)|linux-image-generic" | \
while read n
do
apt-get -y remove $n
done
Initial URL
http://ubuntuforums.org/showthread.php?t=1435818
Initial Description
Snippet found on forums to clean up /boot when too many kernels are installed. Though I think the script may need tweaking. Use at own risk!
Initial Title
Remove Old Kernel Versions
Initial Tags
linux
Initial Language
Bash