[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt pinning



ocl wrote:
Hi,

I am trying to get a certain package (dbmail) pinned to a
certain version (v2*).

This package is not part of debian distribution --yet, but
an older version (v1*) does exist for it in the debian
repositories.

This is the stuff that I added to /etc/apt/sources.list

deb http://debian.nfgd.net/debian woody/
deb-src http://debian.nfgd.net/debian woody/

deb http://debian.nfgd.net/debian sid/
deb-src http://debian.nfgd.net/debian sid/

deb http://debian.nfgd.net/debian stable/
deb-src http://debian.nfgd.net/debian stable/

deb http://debian.nfgd.net/debian unstable/
deb-src http://debian.nfgd.net/debian unstable/

deb http://debian.nfgd.net/debian experimental/
deb-src http://debian.nfgd.net/debian experimental/

Please notice the 'slash' at the end. It is necessary
for this particular repository.

When I add the following lines

  Package: dbmail
  Pin: release version 2*
  Pin-Priority: 1500

to the /etc/apt/prefrences file, I would have expected that
'apt-get install dbmail-pqsql' (i.e PostgreSQL version of
DbMail) would install v2.x, but it does not, it keeps getting
v1.x

I did try it with 'apt-get --reinstall install dbmail-pqsql'
but the result is the same. Same result with Synaptic too.

Could someone help, please.

Cheers,
Ray



Perhaps 'release' should be removed since you're not specifying a release?

I'm not sure on how to pin by version, but a pin by release looks something like this:

Package: apt
Pin: release a=unstable
Pin-Priority:1000



Reply to: