Is it possible to pin a version of a debian package?
Is it possible to pin only the major version? (like with pip install "pyramid < 1.4.0"
will install the latest 1.3.x but will not upgrade the major version)?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityYou can do this, for example, by creating a file /etc/apt/preferences.d/yourpackage
as
Package: yourpackage
Pin: version 7.*
Pin-Priority: 999
This would allow upgrades to yourpackage
to versions matching 7.*