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

Wolfger wolfger at gmail.com
Thu Jun 30 11:27:06 UTC 2011


Nice!

On Wed, Jun 29, 2011 at 8:24 PM, Robert Citek <robert.citek at gmail.com> 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
>



-- 
Wolfger

This work is licensed under a Creative Commons
Attribution-NonCommercial-ShareAlike 3.0 Unported License.
http://creativecommons.org/licenses/by-nc-sa/3.0/



More information about the ubuntu-us-mi mailing list