Help in writing apt-get 'sources.list'
Hi,
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 |
Quote:
cheers, jdk |
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"; if you got a lenny-backports for lenny, or experimental-repo and sid,you need explicit tell apt* to install from there: Code:
apt-get install -t lenny-backports package_name Code:
apt-get install -s package_name greetings (replace apt-get with aptitude or synaptic or any tool you prefer). |
thanks guys...let me try out the examples jdkaye pointed out...
|
Quote:
Code:
deb http://ftp.de.debian.org/debian/ testing main non-free contrib jdk |
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... |
Quote:
So you can use either squeeze or testing in your sources.list. It makes no difference to apt at the moment. |
Thanks all.
I found a primer for apt-get. http://www.linux.com/archive/feature/113879 It answered all my queries.... |
Quote:
Starting to understand what makes Debian so much better then Linux Mint or Ubuntu... yes, I can see how I could setup Ubuntu for this, but its kinda spotty... Not as much control as with Debian.... |
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 |
All times are GMT -5. The time now is 06:05 AM. |