I have the same two kernels. After some Internet searching, I wonder if the following command might remove the old kernel (assuming itâs safe to remove):
sudo apt purge linux-image-5.16.0-1-librem5
I think I want confirmation from a Purism person before I run that, however.
PureOS typically keeps 3 kernels installed at a time. Thatâs a precaution for when the new kernel fails, although recovery is still rather not user-friendly.
I never have had 3 kernels installed in /boot and this partition is rather to small for such luxury. Weâre talking here about the L5 and not the L14.
This related command would (should) work with, I think: sudo dpkg -l | grep linux-image | grep ^rc sudo dpkg -l | grep ^rc | awk '{print $2}' ââ for all other obsolete packages.
Yet it cannot be âsuccessfulâ while both current Linux kernels are in ii stage: sudo dpkg -l | grep linux-image | grep ^ii
Anyway, below one would give result which one to delete manually, if preferred:
@dos, there was an older thread in February of this year and one of my posts there, this one: /boot/initrd.img , does not show two kernels below /boot (only an old .bak file, but not two or three complete kernels). Something changed since then.
If you only have one kernel installed (for instance, after a reflash or after manual removal), youâll only have one kernel there - at least until a second one gets installed