Using apt
you can hold a package using
sudo apt-mark hold package_name
and remove the hold with
sudo apt-mark unhold package_name