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

Re: Configuring APT

On Sat, Jan 31, 2004 at 04:55:26PM -0800, Stefan Baums said
> Dear list,
> I would like to configure APT to do the following:
>    - install requested and update installed packages from
>      repository X (unstable or third-party) for as long as those
>      packages are not available in repository Y (testing or
>      stable)
>    - automatically switch to updating those packages from
>      repository Y instead of X as soon as they become available in
>      Y, even if that requires a downgrade
> Currently, my /etc/apt/preferences file contains
>    Package: *
>    Pin: release a=testing
>    Pin-Priority: 900
>    Package: *
>    Pin: release a=stable
>    Pin-Priority: 800
>    Package: *
>    Pin: release a=unstable
>    Pin-Priority: 700
> This does not do what I want because it will keep installing
> packages from unstable once a version from unstable is on my
> system, even after a testing version of that package becomes
> available.

Read the apt_preferences(5) man page, set the pin for unstable to 100 <
P <=500.

However, what on earth are you doing?  Mixing up all three versions of
Debian is NOT supported, and will eventually break in odd ways.

> I do not have an /etc/apt/apt.conf file.

If you want to set something there, just create it.

Rob Weir <rweir@ertius.org> | mlspam@ertius.org  |  Do I look like I want a CC?
Words of the day:   infowar Hacker Geraldton Ceridian AFSPC SP4 Yukon president

Attachment: signature.asc
Description: Digital signature

Reply to: