Re: Configuring /etc/apt/preferences
On 2004-04-23 20:39:27 +0200, Andrei Badea wrote:
> I tried to change /etc/apt/preferences to this (one single rule):
> Package: *
> Pin: origin ftp.cz.debian.org
> Pin-Priority: 999
> in order to increase the priority, just to see what would happen.
> Unfortunately nothing, on apt-cache policy I get the same list that I
> posted before. All sources have the same priority 990. Maybe the
> "origin" syntax is wrong?
You probably need the scheme too (e.g. ftp://ftp.cz.debian.org)
and possibly more (the full path after "deb" or "seb-src" in
/etc/apt/sources.list). But I've never tried.
> >This 990 may come from that [from apt_preferences(5)]:
> > priority 990
> > to the versions that are not installed and belong to the target
> > release.
> >(whatever the source...).
> Indeed, I set the target release to unstable in apt.conf.
I avoid that by not using any target release in apt.conf, as it is
useless (and possibly harmful[*]) when using preferences.
[*] For instance, this could prevent security updates from being applied.
My /etc/apt/preferences file:
Pin: release a=stable
Pin: release a=testing
Pin: release a=unstable
to track both stable and testing by default (the testing version is
more recent, so that I get this one, except when the versions in stable
and testing are the same and there is a security update, in which case
I get this security update). And I allow unstable packages, which I can
install with "apt-get install -t unstable".
Vincent Lefèvre <firstname.lastname@example.org> - Web: <http://www.vinc17.org/>
100% validated (X)HTML - Acorn / RISC OS / ARM, free software, YP17,
Championnat International des Jeux Mathématiques et Logiques, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA