Where is the Official Proxmox documentation that addresses the best practice for removing old kernels?
So far, none of the posts I've read (in the forum) satisfy me regarding this topic. Partly, this dissatisfaction is due to the fact that different posters are suggesting different practices and it is not clear which to choose.
Some suggestions seems overly involved in light of the fact that you can typically remove old kernels (in other Linux environments) by simply typing one command:
In ubuntu, I have a hot key that types this as one command entry:
As you can see, I remove old kernels before every update, so that I always keep my last running kernel before installing a new one (this is all that's needed).
And by the way, why doesn't the "Proxmox GUI update" automatically remove old kernels? I understand that it should keep maybe the last two kernels, but the way it works right now it will keep 100 of them.
Keeping such a long list of old kernels slows down each update you perform; you can see them listed and taking up time on each update.
So far, none of the posts I've read (in the forum) satisfy me regarding this topic. Partly, this dissatisfaction is due to the fact that different posters are suggesting different practices and it is not clear which to choose.
Some suggestions seems overly involved in light of the fact that you can typically remove old kernels (in other Linux environments) by simply typing one command:
sudo apt-get autoremove
In ubuntu, I have a hot key that types this as one command entry:
(echo ; echo AUTOREMOVE and CLEAN;
time sudo apt --yes autoremove ; sudo apt clean ; echo ;
echo UPDATE ;
time sudo apt update ; echo ;
echo UPGRADE
time sudo apt --yes upgrade ; echo)
As you can see, I remove old kernels before every update, so that I always keep my last running kernel before installing a new one (this is all that's needed).
And by the way, why doesn't the "Proxmox GUI update" automatically remove old kernels? I understand that it should keep maybe the last two kernels, but the way it works right now it will keep 100 of them.
Keeping such a long list of old kernels slows down each update you perform; you can see them listed and taking up time on each update.
Last edited: