[ubuntu-us-mi] Removing all but current kernel

Jay Wren jrwren at xmtp.net
Thu Jun 30 12:51:09 UTC 2011


BRILLIANT!

I love this.

Thanks,
--
j

On Jun 29, 2011, at 8:24 PM, Robert Citek wrote:

> One-liner to removal all but the current installed kernel:
> 
> apt-get purge $(
> ls /boot/vmlinuz-* |
> grep -v $(uname -r) |
> xargs -r dpkg -S |
> cut -d: -f1 |
> sort |
> uniq
> )
> 
> Regards,
> - Robert
> 
> -- 
> ubuntu-us-mi mailing list
> ubuntu-us-mi at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-us-mi




More information about the ubuntu-us-mi mailing list