/ Published in: Bash

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!
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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
URL: http://ubuntuforums.org/showthread.php?t=1435818
Comments
