How to lock a package version in apt-get
Dotan Cohen
dotancohen at gmail.com
Sat Sep 5 18:52:11 UTC 2009
2009/9/5 Markus Schönhaber <ubuntu-users at list-post.mks-mail.de>:
> 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.
>
In theory, yes. However, in practice:
https://launchpad.net/ubuntu/+source/synaptic/+bug/42178
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
More information about the ubuntu-users
mailing list