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.
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