[PVE-User] Cleaning up /boot partition
Lex Rivera
me at lex.io
Sun Oct 6 15:27:55 CEST 2013
Try this:
dpkg -l pve-kernel-* | awk '/^ii/{ print $2}' | grep -v -e `uname -r |
cut -f1,2 -d"-"` | grep -e [0-9] | xargs sudo apt-get -y purge
you can remove -y from last command to verify things before uninstall,
otherwise it will wipe old kernels without confirmation.
On Sat, Oct 5, 2013, at 07:38 PM, David Thompson wrote:
> Hi all,
>
> I updated as server that was running an initial version of 2.0 all the
> way through subsequent 2.X and finally up to 3.1 release.
>
> I have a lot of left over old kernels in the /boot volume.
>
> What is the best (and safest) way to go about removing these kernels and
> any dependences they may have.
>
> I’ve seen some info on how to do this with ubuntu systems, but I thought
> I would check before following those instructions as I’d rather not mess
> things up.
>
> Thanks,
>
> __________
> David
> _______________________________________________
> pve-user mailing list
> pve-user at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
More information about the pve-user
mailing list