Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
I have am running Debian stable (lenny) on my laptop and have set apt up so that when a package is not available it will be downloaded from another suite. For instance skysentials, which Iis only in unstable (sid). To do so, I set a preferred suite in /etc/apt/apt.conf:
Code:
APT::Default-Release "stable";
and my /etc/apt/sourcses.list has entries for both stable, testing and unstable:
Code:
deb http://ftp.nl.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.nl.debian.org/debian/ lenny main contrib non-free
deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free
deb http://www.backports.org/debian lenny-backports main contrib non-free
deb http://www.debian-multimedia.org lenny main
deb http://download.skype.com/linux/repos/debian/ stable non-free
deb http://download.virtualbox.org/virtualbox/debian lenny non-free
deb http://rlehy.free.fr/packages/ekee ./
deb http://ftp.nl.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.nl.debian.org/debian/ squeeze main contrib non-free
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free
deb http://www.debian-multimedia.org squeeze main
deb http://ftp.nl.debian.org/debian/ sid main contrib non-free
deb-src http://ftp.nl.debian.org/debian/ sid main contrib non-free
deb http://www.debian-multimedia.org sid main
Now when I install a package through aptitude (or synaptic or apt-get), it will first see if it's available in lenny. If it is not it will get it from another release.
But what if it is both in testing and unstable? Will it then get the version with the highest version number? That would be from unstable, but if it's also in testing, I would prefer that.
Am I right about apt's behaviour? How would I set things up to get the "most stable" package that is available?
__________________ OS's I use: Debian Lenny, Windows XP, Windows Vista
Nice thing about Debian is the Apt-Get package manger. The problem you have, looking at your repo list, is mixing versions. Lets start from the beginning: Stable (Lenny), Testing (Squeeze) , and Unstable (Always Sid). You've mixed Stable with Testing. A sure fire certainty for problems.
It's one or the other. Not both. So if you want something not in the Stable repos, or the Testing repost, depending on what version you are using, get it via a tarball (ugh!!!). Or look for a .deb package. Otherwise, wait until it's in the repos.
True enough. But why make things more difficult. My point of view is use one or the other - Stable or Testing. If you really want to be adventurous, jump on Sid!
Open Source Security Myths Dispelled Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization subscribe
InformationWeek InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology. subscribe