Hold Ubuntu package from being…

Hold Ubuntu package from being updated, for example PHP.
Hold:

sudo apt-mark hold php7.4

Unhold:

sudo apt-mark unhold php7.4

View held packages:

apt-mark showhold