apt-mark

Utility to change the status of installed packages. More information: https://manpages.debian.org/latest/apt/apt-mark.8.html.

sudo apt-mark auto package

sudo apt-mark hold package

sudo apt-mark unhold package

apt-mark showmanual

apt-mark showhold