How to lock a package version in apt-get
Markus Schönhaber
ubuntu-users at list-post.mks-mail.de
Sat Sep 5 18:46:03 UTC 2009
Dotan Cohen:
> I need to keep a specific package at a specific version on one
> machine. I know about Synaptic's "Lock Version" feature, I am looking
> for something similar for apt-get. From googling I see that this is
> called "pinning" however I only find information on how to pin the
> packages of a particular repo, not on a per-package basis. How is this
> done? Thanks.
http://www.debian.org/doc/manuals/apt-howto/ch-apt-get.en.html#s-pin
BTW: if you lock a package in Synaptic, Synaptic writes the relevant
info to /var/lib/synaptic/preferences. The syntax of the pinning info in
this file seems to be identical to what is required in
/etc/apt/preferences. So, you can let Synaptic do the work for you and
simply copy the relevant info to /etc/apt/preferences.
--
Regards
mks
More information about the ubuntu-users
mailing list