LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 06-12-2012, 08:11 PM   #1
yzfr1
LQ Newbie
 
Registered: Apr 2012
Distribution: Debian Wheezy
Posts: 17

Rep: Reputation: Disabled
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?
 
Old 06-12-2012, 08:35 PM   #2
odiseo77
Member
 
Registered: Dec 2004
Location: London, UK
Distribution: Debian Sid, OpenSUSE 13.1
Posts: 953

Rep: Reputation: 276Reputation: 276Reputation: 276
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).

Last edited by odiseo77; 06-12-2012 at 08:38 PM.
 
Old 06-12-2012, 10:50 PM   #3
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,732
Blog Entries: 12

Rep: Reputation: 455Reputation: 455Reputation: 455Reputation: 455Reputation: 455
Howto: Set up and Maintain a Mixed Testing/Unstable System : http://forums.debian.net/viewtopic.p...=15612&p=76067
 
1 members found this post helpful.
Old 06-13-2012, 12:02 PM   #4
yzfr1
LQ Newbie
 
Registered: Apr 2012
Distribution: Debian Wheezy
Posts: 17

Original Poster
Rep: Reputation: Disabled
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!
 
  


Reply

Tags
apt, packages, wheezy


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
'E:Malformed line 54 in source list /etc/apt/sources.list (dist parse), E:The list of vsssuccess@gmail.com Linux - Desktop 1 11-17-2010 08:17 AM
apt-get; E: Type 'GPG' is not known on line 20 in source list /etc/apt/sources.list tomorrow Linux - Newbie 9 05-21-2009 08:42 AM
sources.list repos for apt-get : to install Opera with youtube working frenchn00b Debian 5 10-22-2008 04:16 PM
Need Recommendation for Debian Etch sources.list ( /etc/apt/sources.list ) forgox Debian 6 05-05-2007 01:57 PM
Noob to debian - add repos to sources.list kdrlx Linux - Newbie 1 01-29-2007 12:32 AM


All times are GMT -5. The time now is 09:03 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration