]> git.saurik.com Git - apt.git/blame - doc/sources.list.5
Closed bugs
[apt.git] / doc / sources.list.5
CommitLineData
578bfd0a
AL
1.\" $Id: sources.list.5,v 1.1 1998/07/02 02:58:12 jgg Exp $\r
2.\" This manpage is copyright (C) 1998 Branden Robinson <branden@debian.org>.\r
3.\" \r
4.\" This is free software; you may redistribute it and/or modify\r
5.\" it under the terms of the GNU General Public License as\r
6.\" published by the Free Software Foundation; either version 2,\r
7.\" or (at your option) any later version.\r
8.\"\r
9.\" This is distributed in the hope that it will be useful, but\r
10.\" WITHOUT ANY WARRANTY; without even the implied warranty of\r
11.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
12.\" GNU General Public License for more details.\r
13.\"\r
14.\" You should have received a copy of the GNU General Public\r
15.\" License along with APT; if not, write to the Free Software\r
16.\" Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA \r
17.\" 02111-1307 USA\r
18.TH sources.list 5 "16 June 1998" "Debian GNU/Linux"\r
19.SH NAME\r
20sources.list \- package resource list for APT\r
21.SH DESCRIPTION\r
22The package resource list is used to locate archives of the package\r
23distribution system in use on the system. At this time, this manual page\r
24documents only the packaging system used by the Debian GNU/Linux system.\r
25.PP\r
26The source list is designed to support any number of active sources and a\r
27variety of source media. The file lists one source per line, with the\r
28most preferred source listed first. The format of each line is:\r
29.I type uri args\r
30The first item,\r
31.IR type ,\r
32determines the format for\r
33.IR args .\r
34.I uri\r
35is a Universal Resource Identifier (URI), which is a superset of the more\r
36specific and well-known Universal Resource Locator, or URL.\r
37.SS The deb type\r
38The\r
39.B deb\r
40type describes a typical two-level Debian archive,\r
41.IR distribution / component .\r
42Typically,\r
43.I distribution\r
44is one of\r
45.BR stable ,\r
46.BR unstable ,\r
47or\r
48.BR frozen ,\r
49while component is one of\r
50.BR main ,\r
51.BR contrib ,\r
52.BR non-free ,\r
53or\r
54.BR non-us .\r
55The format for a\r
56.I sources.list\r
57entry using the\r
58.B deb\r
59type is:\r
60.RS\r
61deb\r
62.I uri distribution\r
63.RI [ component\r
64.I ...\r
65]\r
66.RE\r
67The URI for the\r
68.B deb\r
69type must specify the base of the Debian distribution, from which\r
70.B APT\r
71will find the information it needs.\r
72.I distribution\r
73can specify an exact path, in which case the\r
74.IR component s\r
75must be omitted and\r
76.I distribution\r
77must end with a slash (/). This is useful for when only a particular\r
78sub-section of the archive denoted by the URI is of interest.\r
79If\r
80.I distribution\r
81does not specify an exact path, at least one\r
82.I component\r
83must be present.\r
84.PP\r
85.I distribution\r
86may also contain a variable, \r
87.BR $(ARCH) ,\r
88which expands to the Debian architecture (i386, m68k, powerpc, ...) \r
89used on the system. This permits archiecture-independent \r
90.I sources.list\r
91files to be used.\r
92.PP\r
93Since only one distribution can be specified per line it may be necessary\r
94to have multiple lines for the same URI, if a subset of all available\r
95distributions or components at that location is desired.\r
96.B APT\r
97will sort the URI list after it has generated a complete set internally,\r
98and will collapse multiple references to the same Internet host, for\r
99instance, into a single connection, so that it does not inefficiently\r
100establish an FTP connection, close it, do something else, and then\r
101re-establish a connection to that same host. This feature is useful\r
102for accessing busy FTP sites with limits on the number of simultaneous\r
103anonymous users.\r
104.PP\r
105It is important to list sources in order of preference, with the most\r
106preferred source listed first. Typically this will result in sorting\r
107by speed from fastest to slowest (CD-ROM followed by hosts on a local\r
108network, followed by distant Internet hosts, for example).\r
109.SS URI specification\r
110The three currently recognized URI types are file, http, and ftp.\r
111.IP file\r
112The file scheme allows an arbitrary directory in the file system to be\r
113considered an archive. This is useful for NFS mounts and local mirrors or\r
114archives.\r
115.IP http\r
116The http scheme specifies an HTTP server for the archive. If an environment\r
117variable\r
118.B $http_proxy\r
119is set with the format\r
120.\" Ugly hackery ahead, nroff doesn't like three different typefaces in a\r
121.\" row with no spaces between anything.\r
122.BI http:// server : port /\c\r
123, the proxy server specified in\r
124.B $http_proxy\r
125will be used. Users of\r
126authenticated HTTP/1.1 proxies may use a string of the format\r
127.BI http:// user : pass @ server : port /\c\r
128.\" For some reason, starting the next line with \. didn't work. So we kludge.\r
129\&. Note that this is an insecure method of authentication.\r
130.IP ftp\r
131The ftp scheme specifies an FTP server for the archive. APT's FTP behavior\r
132is highly configurable; for more information see the\r
133.BR ftp.conf (5)\r
134manual page.\r
135.SH EXAMPLES\r
136.IP "deb file:/home/jason/debian stable main contrib non-free"\r
137Uses the archive stored locally (or NFS mounted) at\r
138.I /home/jason/debian\r
139for stable/main, stable/contrib, and stable/non-free.\r
140.IP "deb file:/home/jason/debian unstable main contrib non-free"\r
141As above, except this uses the unstable (development) distribution.\r
142.IP "deb http://www.debian.org/archive stable main"\r
143Uses HTTP to access the archive at www.debian.org, and uses only the\r
144stable/main area.\r
145.IP "deb ftp://ftp.debian.org/debian stable contrib"\r
146Uses FTP to access the archive at ftp.debian.org, under the debian\r
147directory, and uses only the stable/contrib area.\r
148.IP "deb ftp://ftp.debian.org/debian unstable contrib"\r
149Uses FTP to access the archive at ftp.debian.org, under the debian\r
150directory, and uses only the unstable/contrib area. If this line appears as\r
151well as the one in the previous example in\r
152.IR sources.list ,\r
153a single FTP session will be used for both resource lines.\r
154.IP "deb ftp://nonus.debian.org/debian-non-US unstable/binary-i386/"\r
155Uses FTP to access the archive at nonus.debian.org, under the debian-non-US\r
156directory, and uses only files found under unstable/binary-i386.\r
157.IP "deb http://ftp.de.debian.org/debian-non-US unstable/binary-$(ARCH)/"\r
158Uses HTTP to access the archive at nonus.debian.org, under the\r
159debian-non-US directory, and uses only files found under\r
160unstable/binary-i386 on i386 machines, unstable/binary-m68k on m68k, and so\r
161forth for other supported architectures.\r
162.SH SEE ALSO\r
163.BR apt (8),\r
164.BR apt-cache (8),\r
165.BR apt-get (8),\r
166.BR ftp.conf (5)\r
167.SH BUGS\r
168See <http://www.debian.org/Bugs/db/pa/lapt.html>. If you wish to report a\r
169bug in\r
170.BR apt-get ,\r
171please see\r
172.I /usr/doc/debian/bug-reporting.txt\r
173or the\r
174.BR bug (1)\r
175command.\r
176.SH AUTHOR\r
177APT was written by the APT team <apt@packages.debian.org>.\r