LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-26-2006, 06:53 PM   #1
kenramsey
LQ Newbie
 
Registered: Apr 2006
Posts: 7

Rep: Reputation: 0
Sources.list question


What happens if you have different sources that have different versions of the same package. Say you are getting from both stable and testing, which the one that is installed? Or even different version numbers of the same package, like openoffice 1.1 from stable and openoffice 2.x from testing?
 
Old 09-26-2006, 07:03 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I believe that apt will typically install the latest version, which might really screw up everything else on your install. If you want to run mixed sources, look into apt-pinning which will give priority to one repository over another (i.e. everything will always install from stable unless specifically told to install from testing). Note I've never actually had any luck with apt-pinning as the packages I wanted always tried to upgrade a bunch of things I didn't want messed up, like the kernel...

For stable packages, you can look into backports.org, where some newer packages have been compiled on Sarge and can be installed without hosing up too much.
 
Old 09-26-2006, 07:03 PM   #3
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Aptitude or apt-get will probably keep things straight, but it's not a good idea. You are likely to upgrade packages you didn't want upgraded, and there are other good reasons not to keep both stable and testing or unstable repositories on your sources list concurrently. If you can think of a single reason why you need both at the same time, you need to study "pinning." Otherwise comment out one or the other until you have need of a package from the unused one. Then change the comments around, and when you're done, change them again to go back to your normal source. Don't forget to do "aptitude (apt-get) update" whenever you change them.

Last edited by rickh; 09-26-2006 at 07:05 PM.
 
  


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
Need Recommendation for Debian Etch sources.list ( /etc/apt/sources.list ) forgox Debian 6 05-05-2007 01:57 PM
sources.list question black_man Debian 2 12-01-2005 03:15 PM
APT --> Question to sources.list GSX Debian 5 02-10-2005 01:36 AM
apt-get sources.list question? happogiri Linux - Newbie 1 08-06-2004 06:13 AM
total newbie type question-where do i find the good links for /etc/apt/sources.list? petkov Debian 2 03-28-2004 12:44 AM

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

All times are GMT -5. The time now is 10:57 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