Hold or Exclude Packages sudo apt-mark hold postgresql* List Packages on Hold sudo dpkg --get-selections | grep "hold" Unhold or Include Package in Install sudo apt-mark unhold postgresql*