User Tools

Site Tools


linux:apt-hold

apt hold

Prevent packages from auto-updated via apt:

sudo apt-mark hold packagename

Show all holds:

apt-mark showhold

Remove mark:

sudo apt-mark unhold packagename

Same for dpkg:

echo "packagename hold" | sudo dpkg --set-selections
dpkg --get-selections | grep hold
echo "packagename install" | sudo dpkg --set-selections

https://www.cyberciti.biz/faq/apt-get-hold-back-packages-command/

linux/apt-hold.txt · Last modified: 2023/05/29 11:55 by 127.0.0.1