0

we use an own repo for some packages. How can we avoid it, that these packages will be upgraded from other repo's (e.g if the packages in the official mirror are newer than our packages) by an apt-get upgrade ?

We use ubuntu systems (apt).

2 Answers2

1

You can hold back a specific package so that it will never get upgraded automatically, neither through the official repositories, nor through your personal PPAs or whatever source.

The command is simple, just replace PACKAGE_NAME with the package name you want to hold back. You can also enter a space-separated list of packages:

sudo apt-mark hold PACKAGE_NAME

To undo this and enable automatic upgrades of this package again, use:

sudo apt-mark unhold PACKAGE_NAME

I believe that this only works for installed packages, when I try to hold back a not installed package, it does not save that state.

Byte Commander
  • 110,243
0

Thank you for your answer. I've found the following solution with pinning of apt and set priority's.

Apt Pinning (ubuntuusers.de)