Hold a package at its current version (apt-mark hold)
apt hold package version | exclude package from apt upgrade | prevent package from updating debian | freeze package version | apt-mark | apt | updatesCaution: This command changes the system. Understand what it does before you run it.
apt-mark hold mariadb-serverMarks a package as held so apt upgrade and unattended-upgrades no longer update it. Useful when a new version has a known problem or an update should only be installed after testing. Held packages are shown as kept back during apt upgrade.
Note: On Plesk servers, do not hold Plesk packages (plesk-*, psa-*, sw-*) or services managed by Plesk without checking first, as this can block Plesk updates and repairs. Held packages also stop receiving security updates.
Also searched as
- apt hold package version
- exclude package from apt upgrade
- prevent package from updating debian
- freeze package version