Ubuntu: apt-mark Holding a pacakge to a major version (not a specific minor)



Question:

I want to hold versions of packages on my servers to prevent breaking changes in infrastructure from breaking our code (Changes from mongodb 2.4 to 2.6 for example..)

I know I can (for example) apt-mark hold package for example, but then I stop getting security patches and minor upgrades.

Also I would like to install packages with setting a major version (but not a minor)

for example I know I can:

sudo apt-get install -y rabbitmq-server=3.3.5  

But I want to just pin installation to a major version (3.*)

How can this be achieved?


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »