LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   Prevent apt from pulling updates from all repos in sources.list (http://www.linuxquestions.org/questions/debian-26/prevent-apt-from-pulling-updates-from-all-repos-in-sources-list-4175411118/)

yzfr1 06-12-2012 09: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.
Code:

## DEBIAN
deb http://ftp.mx.debian.org/debian/ wheezy main contrib non-free
deb http://ftp.mx.debian.org/debian/ wheezy-proposed-updates main contrib non-free

deb http://ftp.mx.debian.org/debian/ unstable main
deb http://ftp.mx.debian.org/debian/ experimental main

## DEBIAN SECURITY
deb http://security.debian.org/ 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 09: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 11:50 PM

Howto: Set up and Maintain a Mixed Testing/Unstable System : http://forums.debian.net/viewtopic.p...=15612&p=76067

yzfr1 06-13-2012 01: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

Code:

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


All times are GMT -5. The time now is 08:05 PM.