Debian APT – How to Delay Update of Specific Packages

aptdebian

On Debian, in my apt sources I have put the source for opera-stable browser.

opera is updated very often on their repo, almost daily or every other day.
That's very frequent and every time a large download.

Is there a way to skip its (somehow automatic) update for a specific duration or something similar by configuring apt in a specific way? Updating that package only once per month would be sufficient for me.

Opera is an example here, but there is other closed source software that I have in my apt repo that I would like to be managed in the same manner.

Best Answer

To exclude the Opera Debian package from updates, use the following command:

sudo apt-mark hold package_name 

This will turn off the updates of the specified package(s) from automatic upgrades and also from manual upgrades.

To undo the hold, use the following command:

sudo apt-mark unhold package_name 

For more information for Debian and other Linux distributions, see
Excluding Packages from Apt-Get Upgrade.