How to lock a package version in apt-get
NoOp
glgxg at sbcglobal.net
Sat Sep 5 19:28:37 UTC 2009
On 09/05/2009 11:52 AM, Dotan Cohen wrote:
> 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
>
And still has issues on jaunty:
https://bugs.launchpad.net/ubuntu/+source/synaptic/+bug/67146
Also note that; /etc/apt/preferences is not created by default.
These may also be helpful:
http://manpages.ubuntu.com/manpages/jaunty/en/man8/apt-get.8.html
<http://manpages.ubuntu.com/manpages/jaunty/en/man5/apt_preferences.5.html>
Or not :-)
More information about the ubuntu-users
mailing list