Partition Resizing Plan

Colin Law clanlaw at
Fri Dec 13 13:43:58 UTC 2013

On 13 December 2013 13:27, Liam Proven <lproven at> wrote:
> On 13 December 2013 03:19, Barry Premeaux <bpremeaux at> wrote:
>> Started removing
>> old kernels until I was down to the current and 3 earlier ones.
> Personally I don't keep old ones around at all.

I have seen this command suggested as a way to get rid of all old kernels

sudo apt-get remove --purge $(dpkg -l 'linux-*' | sed
'/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]*
[^ ]* \([^ ]*\).*/\1/;/[0-9]/!d')

but have never had the courage to try it.  This answer on askubuntu
[1] suggests some other ways to clean them up.



More information about the ubuntu-users mailing list