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

Re: Pinning, Local Repositories



On Mon, 15 Aug 2005 11:45:06 -0400, Ryan King <rking@panoptic.com> said:

> On glumble.example.net, I have:
>     /etc/apt/sources.list
>         deb http://apt.example.net binary/
>         # ... normal repo's
>     /etc/apt/preferences
>         Package: *
>         Pin: release o=Example
>         Pin-Priority: 900

[...]

> The setup works for the simple cases of when we put a package up
> that's newer than the one in the distro's repository, but the pinning
> seems to have no effect.  If I upload libfoo-perl.0.deb, it doesn't
> take preference over the distro's libfoo-perl.1.deb.

You need to set a priority > 1000 to force a downgrade.  Pinning
priorities are a bit strange; different numbers mean different things.
Read 'man apt_preferences' for all the gory details.

-- 
Hubert Chan <hubert@uhoreg.ca> - http://www.uhoreg.ca/
PGP/GnuPG key: 1024D/124B61FA
Fingerprint: 96C5 012F 5F74 A5F7 1FF7  5291 AF29 C719 124B 61FA
Key available at wwwkeys.pgp.net.   Encrypted e-mail preferred.



Reply to: