E con pochi giri di parole ecco a voi :
/bin/bash ls /boot/ | grep vmlinuz | sed "s@vmlinuz-@linux-image-@g" | grep -v `uname -r` > /tmp/kernels.tmp for I in `cat /tmp/kernels.tmp` do aptitude remove $I done rm -f /tmp/kernels.tmp update-grub
Collect moments, not things
E con pochi giri di parole ecco a voi :
/bin/bash ls /boot/ | grep vmlinuz | sed "s@vmlinuz-@linux-image-@g" | grep -v `uname -r` > /tmp/kernels.tmp for I in `cat /tmp/kernels.tmp` do aptitude remove $I done rm -f /tmp/kernels.tmp update-grub