DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Im tring to understand how to write a sources.list file. I have the following questions-
1) Assume my sources.list has two sources A & B to pick the packages from. A has latest version for few packages & B has latest for remaining packages. How should I write my sources.list file
Im tring to understand how to write a sources.list file. I have the following questions-
1) Assume my sources.list has two sources A & B to pick the packages from. A has latest version for few packages & B has latest for remaining packages. How should I write my sources.list file
Regards,
unev
In the very first thread of this forum (Debian) there zillions of examples of sources.list files. Just look at a few and you'll get the idea. The order in which you put the files is irrelevant since (in principle) no source should have the same packages in the same version (Lenny, Squeeze, Sid, Experimental, etc.) as any other. In most cases these sources come in pairs: the binary packages and the source (src) packages.
if you dont do some magic like pinning or editing conf-files the package-managing will pick the newest version. out of box.
-----
eg: this line in /etc/apt/apt.conf
Code:
APT::Default-Release "testing";
will set the default release to testing if you run a mixed testing/unstable system (to install from unstable you would need to do it like in the next example)
if you got a lenny-backports for lenny, or experimental-repo and sid,you need explicit tell apt* to install from there:
u can run a simultated installation to check if it works out the way you want it:
Code:
apt-get install -s package_name
i for one am very happy with the official debian-repos (either lenny and lenny-backports or a pure debian-unstable repo. + e17 repos, but thats a different story.)
greetings
(replace apt-get with aptitude or synaptic or any tool you prefer).
thanks guys...let me try out the examples jdkaye pointed out...
Just remember to use the sources.list appropriate to your installation. If you're using Lenny, then make sure that lenny or stable appear in each repo. I use testing (aka squeeze) so my repos look like this:
Code:
deb http://ftp.de.debian.org/debian/ testing main non-free contrib
Not exactly jdkaye....
You mentioned "deb http://ftp.de.debian.org/debian/testing main non-free contrib" Here there is no reference to squeeze. How does apt-get know that it has to download packages for squeeze..
I just dont get the concept of how apt-get works...It will be great if some one can direct me to appropriate knowledge base...
Not exactly jdkaye....
You mentioned "deb http://ftp.de.debian.org/debian/testing main non-free contrib" Here there is no reference to squeeze. How does apt-get know that it has to download packages for squeeze..
I just dont get the concept of how apt-get works...It will be great if some one can direct me to appropriate knowledge base...
Squeeze is the current codename for the Testing distribution.
So you can use either squeeze or testing in your sources.list.
It makes no difference to apt at the moment.
As you're just getting started, I would recommend that you use aptitude and not apt-get for your packages. If you wish to know why, just search LQ for aptitude apt-get and you'll find loads of threads discussing this point.
cheers,
jdk
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.