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

Greg Grossmeier greg at grossmeier.net
Thu Jun 30 17:06:19 UTC 2011


Thanks! This freed up almost a gig on my laptop!


<quote name="Duane Brown" date="2011-06-30" time="12:04:01 -0400">
> yes it is, I was asking Jim, Craig and Robert last night at CHC
> about this and he posted it.
> 
> On my desktop I have a bunch of old kernels installed and want to do
> some housekeeping. He had this ready and obviously was willing to
> share.
> 
> Duane
> On 06/30/2011 08:51 AM, Jay Wren wrote:
> >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
> >
> 
> 
> -- 
> 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

-- 
|       Greg Grossmeier |
| http://grossmeier.net |



More information about the ubuntu-us-mi mailing list