Sometimes we want to install a package that is in testing state into a stable system. To do so, just follow the instructions below.
NOTE: The following tips have been copied from the link:
http://forums.spry.com/debian/620-how-install-testing-packages-debian-stable-apt-get.html
The solution for keeping stable and installing the package is to modify apt-get configuration to setup what is called a mixed system:
– Create or modify the /etc/apt/apt.conf file and make it contain the following line:
APT::Default-Release "stable";
-modify the /etc/apt/sources.list file: copy all the lines containing stable, insert them at the end of the file, and replace the stable in the lines you just added by testing. You must have all the original lines in the files plus all the lines where stable has been replaced by testing.
-run apt-get update to update the list of installable packages.
-if you want to install the package foo that is present in the testing sources, use the following command:
apt-get -t testing install foo
Be very careful about which packages you install from testing. By definition they are not as stable as the packages found in the stable distribution.