For the complete documentation index, see llms.txt. This page is also available as Markdown.

APT Hold Package(s) From Upgrades

We can ignore a package's upgrade by running apt-mark hold command.

Hold Updates

apt-mark hold {PACKAGE_NAME}

Unhold Updates

apt-mark unhold {PACKAGE_NAME}

Example

Holding code package -

apt-mark hold code

Undo -

apt-mark unhold code

Source: CyberCiti

Last updated