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

Re: trouble getting apt-pinning to work



On Thu, Nov 8, 2012 at 7:07 PM, Brendan Miller <catphive@catphive.net> wrote:
>
> I'm on debian stable (squeeze), but would like to be able to install a
> few packages from testing (wheezy). I tried to set up apt pinning, but
> it doesn't seem to work quite right. When I apt-get install something
> now, it all comes from wheezy even if there are squeeze versions of
> the package. It's almost like the preferences file isn't getting read.
>
> Is there anything wrong with the configuration below? Is there any way
> to get apt to spit out it's internal model of the priorities so I can
> verify that everything is actually getting loaded?
>
> /etc/apt/preferences:
>
> Package: *
> Pin: release a=squeeze
> Pin-Priority: 700
>
> Package: *
> Pin: release a=wheezy
> Pin-Priority: 650

"a=stable" and "a=testing", or (AFAIK, new in squeeze) "n=squeeze" and
"n=wheezy".


Reply to: