14 Dec 2004 09:54

Testing/Unstable Mix with apt-get

I like to run testing, but sometimes you just need that unstable package now. Here's how:

# /etc/apt/preferences    
Package: *
Pin: release a=testing
Pin-Priority: 900

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

Package: *
Pin: release a=experimental
Pin-Priority: 700


# /etc/apt/apt.conf
APT::Default-Release "testing";

# /etc/apt/sources.list
# put both testing and unstable lines here

Note: if you don't do the preferences and apt.conf stuff, you'll end up grabbing unstable by default and soon you'll be running unstable not testing.