Prevent updating of a specific package


dpkg

Put a package on hold:
echo "<package-name> hold" | sudo dpkg --set-selections
 
Remove the hold:
echo "<package-name> install" | sudo dpkg --set-selections

Display the status of your packages:
dpkg --get-selections

Display the status of a single package:
dpkg --get-selections | grep "<package-name>"

apt

Hold a package:
sudo apt-mark hold <package-name>

Remove the hold:
sudo apt-mark unhold <package-name> 
 
 
 
 

How to Install PHP 8.3 on Ubuntu 26.04, 24.04 and 22.04

 importar chave repo sudo apt install -y ca-certificates curl sudo curl -fsSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sur...

Mais vistos