apt-get hold back packages on Ubuntu / Debian Linux

www.l‮ua‬tturi.com
apt-get hold back packages on Ubuntu / Debian Linux

To hold back packages on Ubuntu or Debian Linux, you can use the apt-mark command with the hold option. This command allows you to mark specific packages as "held back", which prevents them from being upgraded or removed by the apt-get command. This can be useful for preventing certain packages from being upgraded to a new version that may be unstable or cause compatibility issues with your system.

To hold back a package using the apt-mark command, you can use the following syntax:

apt-mark hold package-name

This will mark the package-name package as held back, and it will not be upgraded or removed by the apt-get command until you explicitly unhold it.

To unhold a package, you can use the apt-mark command with the unhold option, as shown below:

apt-mark unhold package-name

This will unhold the package-name package, and it will be eligible for upgrades and removals by the apt-get command.

By using the apt-mark command, you can easily hold back packages on Ubuntu or Debian Linux. This can be useful for preventing certain packages from being upgraded or removed, which can help to maintain stability and compatibility on your system.

Created Time:2017-10-16 14:38:55  Author:lautturi