First, as indicated in this link one can inspect which kernels are installed using:
dpkg -l | grep linux-image
which can return something like:
.. linux-image-5.11.0-1007-raspi ..
.. linux-image-raspi ..
which I believe are kernel versions.
Next one can set these kernel versions to hold using the interpretation of the commands from this link: