-   Debian (
-   -   Prevent apt from pulling updates from all repos in sources.list (

yzfr1 06-12-2012 08:11 PM

Prevent apt from pulling updates from all repos in sources.list
Hi guys!

I'm running Debian Wheezy and though I use select packages from unstable and experimental (like chromium and iceweasel for example) I'm not willing to upgrade everything, ie. only specified packages should be pulled from the unstable repos. This is my sources.list at the moment.

deb wheezy main contrib non-free
deb wheezy-proposed-updates main contrib non-free

deb unstable main
deb experimental main

deb wheezy/updates main contrib non-free

I guess what I'm looking for is sort of how the backports work for squeeze, unless I use the -t flag to explicitly pull packages from unstable or experimental I don't want it to pull packages or package updates from them (except for packages already installed from there of course).

Any ideas?

odiseo77 06-12-2012 08:35 PM

You can resort to apt-pinning in order to give priority to the main Wheezy repo and download/install from Unstable and Experimental only by explicitly telling apt-get to download from there (with the -t option).

craigevil 06-12-2012 10:50 PM

Howto: Set up and Maintain a Mixed Testing/Unstable System :

yzfr1 06-13-2012 12:02 PM

Thanks, that was easy!

All I did was to add the following line at the end of the file /etc/apt/apt.conf.d/70debconf


APT::Default-Release "testing";
Thanks guys!

All times are GMT -5. The time now is 12:19 PM.