I've followed the instructions on debian-handbook.info/browse/stable/apt.html (and the page linked there) which basically say to put the following text in /etc/apt/sources.list
# Unstable
deb http://ftp.debian.org/debian unstable main contrib non-free
deb-src http://ftp.debian.org/debian unstable main contrib non-free
# Testing
deb http://ftp.debian.org/debian testing main contrib non-free
deb-src http://ftp.debian.org/debian testing main contrib non-free
# Stable
deb http://ftp.debian.org/debian stable main contrib non-free
deb-src http://ftp.debian.org/debian stable main contrib non-free
# Security updates
deb http://security.debian.org/ stable/updates main contrib non-free
deb http://security.debian.org/ testing/updates main contrib non-free
deb-src http://security.debian.org/ stable/updates main contrib non-free
deb-src http://security.debian.org/ testing/updates main contrib non-free
Then add APT::Default-Release "testing";
to /etc/apt/apt.conf.d/local
to download only the packages in Testing.
Well, it didn't work.
I also tried adding APT::Default-Release "testing";
to /etc/apt/apt.conf.d/70debconf
as suggested at https://wiki.debian.org/AptConf but apt dist-upgrade
still wanted to install Unstable's pakages.
apt-get
won't downgrade anything. and if you have already installed a newer version of a package (e.g. a library) from unstable than what is available in testing, thenapt-get
will only install dependent packages from testing if they don't conflict with the installed (unstable) version of the package.apt-get
's-d -u
or-V -d -u
options. e.g.apt-get -d -u install pkg
orapt-get -V -d -u dist-upgrade
. Remove those options when you're sure it's going to install what you want.apt list --upgradable
after anapt update
, for every package I gotpackagename/unstable,testing version ...
. The versions were actually those of packages in Sid.apt-cache policy
andapt-cache policy PACKAGE
wherePACKAGE
is the name of a package that you'd expect a different candidate version of.