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

Re: apt-get question



Jorge Santos <jsf@dep3.fciencias.unam.mx> wrote:
>Hello, I want apt-get to get some packages from unstable (using
>something like apt-get install postgresql/unstable), but for all the
>other packages I want the versions in testing (so that doing an
>'apt-get install postgresql install the version from testing), but I
>think if I just edit sources.list and add the unstable sources then
>the following 'apt-get install foo' will install the version from
>unstable (when I whould like it to install the version from testing),
>I hope I stated my problem clearly :)  Does anyone knows how I can
>achieve this?

You can pin your system to testing; the apt_preferences(5) man page
describes how, and Joey Hess explained it on this list just last Friday.
Try this in /etc/apt/preferences:

Package: *
Pin: release a=testing
Pin-Priority: 900

Package: *
Pin: release o=Debian
Pin-Priority: -10

-- 
Colin Watson                                     [cjw44@flatline.org.uk]



Reply to: