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

Re: apt-get testing package on an otherwise stable box

Am 02. Aug, 2001 schwäzte Andrew Pritchard so:

> Is there a way you can install a package from the testing branch using
> apt-get, from a box which is in every other way 'stable'? I remember
> seeing something like this I think on debianplanet - but I can't now find
> the reference.

Yes. Add woody to your sources.list, then install apt from woody.

apt-get update
apt-get install apt

That brings you up to apt > .5. Now you can use /etc/apt/preferences to lock
down where things come from.

Package: *
Pin: release a=stable
Pin-Priority: 600

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

Package: *
Pin: release a=unstable
Pin-Priority: 80

Those priorities will keep testing and unstable packages from being
installed without you explicitly asking for them.

Now "apt-get install <package>/testing" will get the package from testing.
Say you're getting bar and that doesn't work because it depends on the
version of bar from testing, then you get both from testing, e.g.:

apt-get install foo/testing bar/testing

Anything not specifically nabbed from testing will come from stable.

Most things are fine because dependency resolution makes sure you have what
you need. If debconf or anything else dependent on perl 5.6 needs to be
installed you're probably better off just doing a dist-upgrade to woody. For
that change woody's priority to 700 and do a dist-upgrade.


# der.hans@LuftHans.com home.pages.de/~lufthans/ www.DevelopOnline.com
#  kill telnet, long live ssh - der.hans

Reply to: