LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 05-23-2013, 11:44 PM   #1
edbarx
Member
 
Registered: Sep 2010
Distribution: Used Debian since Sarge. (~2005)
Posts: 373

Rep: Reputation: 21
Exclude SID from Debian Testing.


Due to constraints I cannot efficiently control, I opted to use Debian Testing. How do I exclude SID packages from infiltrating into my system?

Last edited by edbarx; 05-24-2013 at 11:34 AM.
 
Old 05-24-2013, 01:14 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Are you being purposely mysterious.
Just don't ask for any. You do that with your sources.list (/etc/apt/sources.list). If you don't have any Sid repos then you can't get any Sid packages. You realise, I hope, that all Testing packages were once Sid packages. But if you've used Debian since 2005 I would have thought you knew all that???
jdk
 
Old 05-24-2013, 01:39 AM   #3
edbarx
Member
 
Registered: Sep 2010
Distribution: Used Debian since Sarge. (~2005)
Posts: 373

Original Poster
Rep: Reputation: 21
Quote:
Are you being purposely mysterious?
Interpreting the OP as purposely being mysterious, definitely, depends on the reader's state of mind. In the case of an unstable mind, that can easily be the case.

I am asking because I learnt that it can be done, and because Testing is in effect Testing/Sid by default, and there is no need to consciously include "sid" in /etc/apt/sources.list. The technique is related to pinning, but I have never used it, and that is the purpose why I asked here.

A simple indication as to what I should read to understand what I should do and what it entails, also know as an RTFM, is enough for me.


Thanks.

Last edited by edbarx; 05-24-2013 at 01:42 AM.
 
Old 05-24-2013, 01:45 AM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Sorry but I thought Testing is Unstable.
 
Old 05-24-2013, 02:56 AM   #5
edbarx
Member
 
Registered: Sep 2010
Distribution: Used Debian since Sarge. (~2005)
Posts: 373

Original Poster
Rep: Reputation: 21
I am reading about "apt pinning", but the prospects are not so attractive to anyone wanting a stable system from the point of view that it wouldn't include any SID packages.

Please note, that "stable" above is used in a different sense than what it is usually intended to mean by Debian.

I want to prevent a Debian Testing installation from automatically pulling in packages from SID. This, obviously, if this setup is possible.
 
Old 05-24-2013, 03:51 AM   #6
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Testing is not Sid.
Testing will not install any packages from Sid repositories unless you add some lines to your sources.list to include Sid repositories.
So, the answer to your question is that you do not have to do anything to stop Testing from installing Sid packages as it will not do that.
 
Old 05-24-2013, 03:57 AM   #7
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Calling something Jessie/Sid does not mean that Testing and Unstable are the same. They each have their own repositories. I stated this in my first post. You cannot get a Sid package into a Testing box via normal means (using apt-get or aptitude) if you don't have unstable repos in your sources.list file. To get an unstable package in a Testing box you need to:
1. Have unstable repos in your sources.list file
2. Have a preference file that looks something like this:
Code:
Package: *
Pin: release o=Debian,a=unstable
Pin-Priority: 600

Package: *
Pin: release o=Debian,a=testing
Pin-Priority: 650

Package: *
Pin: release o=qt-kde,a=experimental-snapshots
Pin-Priority: 101
3. Use a special switch in aptitude or apt-get like this:
Code:
aptitude -t unstable install some-package.deb
So you can see it's very hard to imagine all this happening by accident. The only automatic (w/o asking you) installation of unstable package would be upgrading those that you have already chosen as the unstable versions you wish to use. Nothing accidental about this at all.
jdk
 
Old 05-24-2013, 06:31 AM   #8
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
If your sources are tracking testing, then you won't get any packages from unstable...
 
Old 05-24-2013, 11:34 AM   #9
edbarx
Member
 
Registered: Sep 2010
Distribution: Used Debian since Sarge. (~2005)
Posts: 373

Original Poster
Rep: Reputation: 21
So, it means I should retain my current configuration.

Code:
cat /etc/apt/sources.list
deb http://ftp2.fr.debian.org/debian jessie main contrib non-free
deb-src http://ftp2.fr.debian.org/debian/ jessie main

deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main
and

Code:
cat /etc/apt/preferences
cat: /etc/apt/preferences: No such file or directory
 
Old 05-24-2013, 11:53 AM   #10
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
You will only get updates meant for Jessie if that is what you mean, yes.
Since you are tracking a release that is currently testing you will, however, get things like kernel version updates if you run dist-upgrade regularly (which most people who want to track Testing will do).
 
Old 05-24-2013, 12:43 PM   #11
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by 273 View Post
You will only get updates meant for Jessie if that is what you mean, yes.
Since you are tracking a release that is currently testing you will, however, get things like kernel version updates if you run dist-upgrade regularly (which most people who want to track Testing will do).
You get kernel upgrades (called "linux-images" by Debian) the same way you get upgrades of any other package. I never use "dist-upgrade" but only "safe-upgrade" and that certainly doesn't prevent kernel updates from happening.
jdk
 
Old 05-24-2013, 12:47 PM   #12
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by jdkaye View Post
You get kernel upgrades (called "linux-images" by Debian) the same way you get upgrades of any other package. I never use "dist-upgrade" but only "safe-upgrade" and that certainly doesn't prevent kernel updates from happening.
jdk
I was under the impression that all you got were updates to the current kernel, bugfixes and the like, not upgrades to a different version of the kernel? (For example Sid just changed to the 3.8 branch -- I had thought you would only get that kernel if you dist-upgrade)
 
Old 05-24-2013, 01:19 PM   #13
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
In testing and unstable, you will get new kernels when they become available if you have the kernel package installed - e.g. linux-image-686-pae

This is a meta package which will always install the latest 686-pae kernel from the repos (as a dependency) when updated.

Debian stable kernels do not get version upgrades, only bug fixes - so stable users will not see any new kernels. This means if they want the latest LTS kernel (3.4) in place of 3.2, they'll need to build it.
 
Old 05-24-2013, 01:31 PM   #14
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Ah, thanks, I'd not realised that any packages were upgraded to higher versions without a dist-upgrade.
 
Old 05-24-2013, 01:35 PM   #15
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
You'll also recall that the linux kernel numbering system was changed a couple of years ago. Before then a change from kernel 2.4 to 2.6 was a major change. Today a change from 3.5 to 3.8 is not so momentous.
jdk
 
  


Reply



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
LXer: How to install a single package from Debian SID or Debian Testing on a stable system LXer Syndicated Linux News 0 11-22-2012 04:42 PM
debian upgrade to testing and sid trelos Debian 4 09-28-2006 02:31 PM
debian testing/stable and sid in same pc salahuddin_66 Debian 1 10-13-2005 06:52 PM
Gnome 2.6 on Debian testing/Sid utanja Debian 6 06-23-2004 03:24 PM
debian: woody,sid,unstable,testing snow Linux - Distributions 2 02-05-2003 09:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:55 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration