]>
Commit | Line | Data |
---|---|---|
7d5bbcbc | 1 | .\" $Id: sources.list.5,v 1.2 1998/11/23 01:16:01 jgg Exp $\r |
578bfd0a AL |
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 | |
20 | sources.list \- package resource list for APT\r | |
21 | .SH DESCRIPTION\r | |
22 | The package resource list is used to locate archives of the package\r | |
23 | distribution system in use on the system. At this time, this manual page\r | |
24 | documents only the packaging system used by the Debian GNU/Linux system.\r | |
25 | .PP\r | |
26 | The source list is designed to support any number of active sources and a\r | |
27 | variety of source media. The file lists one source per line, with the\r | |
28 | most preferred source listed first. The format of each line is:\r | |
29 | .I type uri args\r | |
30 | The first item,\r | |
31 | .IR type ,\r | |
32 | determines the format for\r | |
33 | .IR args .\r | |
34 | .I uri\r | |
35 | is a Universal Resource Identifier (URI), which is a superset of the more\r | |
36 | specific and well-known Universal Resource Locator, or URL.\r | |
37 | .SS The deb type\r | |
38 | The\r | |
39 | .B deb\r | |
40 | type describes a typical two-level Debian archive,\r | |
41 | .IR distribution / component .\r | |
42 | Typically,\r | |
43 | .I distribution\r | |
44 | is one of\r | |
45 | .BR stable ,\r | |
46 | .BR unstable ,\r | |
47 | or\r | |
48 | .BR frozen ,\r | |
49 | while component is one of\r | |
50 | .BR main ,\r | |
51 | .BR contrib ,\r | |
52 | .BR non-free ,\r | |
53 | or\r | |
54 | .BR non-us .\r | |
55 | The format for a\r | |
56 | .I sources.list\r | |
57 | entry using the\r | |
58 | .B deb\r | |
59 | type is:\r | |
60 | .RS\r | |
61 | deb\r | |
62 | .I uri distribution\r | |
63 | .RI [ component\r | |
64 | .I ...\r | |
65 | ]\r | |
66 | .RE\r | |
67 | The URI for the\r | |
68 | .B deb\r | |
69 | type must specify the base of the Debian distribution, from which\r | |
70 | .B APT\r | |
71 | will find the information it needs.\r | |
72 | .I distribution\r | |
73 | can specify an exact path, in which case the\r | |
74 | .IR component s\r | |
75 | must be omitted and\r | |
76 | .I distribution\r | |
77 | must end with a slash (/). This is useful for when only a particular\r | |
78 | sub-section of the archive denoted by the URI is of interest.\r | |
79 | If\r | |
80 | .I distribution\r | |
81 | does not specify an exact path, at least one\r | |
82 | .I component\r | |
83 | must be present.\r | |
84 | .PP\r | |
85 | .I distribution\r | |
86 | may also contain a variable, \r | |
87 | .BR $(ARCH) ,\r | |
88 | which expands to the Debian architecture (i386, m68k, powerpc, ...) \r | |
89 | used on the system. This permits archiecture-independent \r | |
90 | .I sources.list\r | |
91 | files to be used.\r | |
92 | .PP\r | |
93 | Since only one distribution can be specified per line it may be necessary\r | |
94 | to have multiple lines for the same URI, if a subset of all available\r | |
95 | distributions or components at that location is desired.\r | |
96 | .B APT\r | |
97 | will sort the URI list after it has generated a complete set internally,\r | |
98 | and will collapse multiple references to the same Internet host, for\r | |
99 | instance, into a single connection, so that it does not inefficiently\r | |
100 | establish an FTP connection, close it, do something else, and then\r | |
101 | re-establish a connection to that same host. This feature is useful\r | |
102 | for accessing busy FTP sites with limits on the number of simultaneous\r | |
103 | anonymous users.\r | |
104 | .PP\r | |
105 | It is important to list sources in order of preference, with the most\r | |
106 | preferred source listed first. Typically this will result in sorting\r | |
107 | by speed from fastest to slowest (CD-ROM followed by hosts on a local\r | |
108 | network, followed by distant Internet hosts, for example).\r | |
109 | .SS URI specification\r | |
110 | The three currently recognized URI types are file, http, and ftp.\r | |
111 | .IP file\r | |
112 | The file scheme allows an arbitrary directory in the file system to be\r | |
113 | considered an archive. This is useful for NFS mounts and local mirrors or\r | |
114 | archives.\r | |
115 | .IP http\r | |
116 | The http scheme specifies an HTTP server for the archive. If an environment\r | |
117 | variable\r | |
118 | .B $http_proxy\r | |
119 | is 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 | |
125 | will be used. Users of\r | |
126 | authenticated 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 | |
131 | The ftp scheme specifies an FTP server for the archive. APT's FTP behavior\r | |
132 | is highly configurable; for more information see the\r | |
133 | .BR ftp.conf (5)\r | |
134 | manual page.\r | |
135 | .SH EXAMPLES\r | |
136 | .IP "deb file:/home/jason/debian stable main contrib non-free"\r | |
137 | Uses the archive stored locally (or NFS mounted) at\r | |
138 | .I /home/jason/debian\r | |
139 | for stable/main, stable/contrib, and stable/non-free.\r | |
140 | .IP "deb file:/home/jason/debian unstable main contrib non-free"\r | |
141 | As above, except this uses the unstable (development) distribution.\r | |
142 | .IP "deb http://www.debian.org/archive stable main"\r | |
143 | Uses HTTP to access the archive at www.debian.org, and uses only the\r | |
144 | stable/main area.\r | |
145 | .IP "deb ftp://ftp.debian.org/debian stable contrib"\r | |
146 | Uses FTP to access the archive at ftp.debian.org, under the debian\r | |
147 | directory, and uses only the stable/contrib area.\r | |
148 | .IP "deb ftp://ftp.debian.org/debian unstable contrib"\r | |
149 | Uses FTP to access the archive at ftp.debian.org, under the debian\r | |
150 | directory, and uses only the unstable/contrib area. If this line appears as\r | |
151 | well as the one in the previous example in\r | |
152 | .IR sources.list ,\r | |
153 | a 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 | |
155 | Uses FTP to access the archive at nonus.debian.org, under the debian-non-US\r | |
156 | directory, 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 | |
158 | Uses HTTP to access the archive at nonus.debian.org, under the\r | |
159 | debian-non-US directory, and uses only files found under\r | |
160 | unstable/binary-i386 on i386 machines, unstable/binary-m68k on m68k, and so\r | |
161 | forth for other supported architectures.\r | |
162 | .SH SEE ALSO\r | |
578bfd0a AL |
163 | .BR apt-cache (8),\r |
164 | .BR apt-get (8),\r | |
578bfd0a AL |
165 | .SH BUGS\r |
166 | See <http://www.debian.org/Bugs/db/pa/lapt.html>. If you wish to report a\r | |
167 | bug in\r | |
168 | .BR apt-get ,\r | |
169 | please see\r | |
170 | .I /usr/doc/debian/bug-reporting.txt\r | |
171 | or the\r | |
172 | .BR bug (1)\r | |
173 | command.\r | |
174 | .SH AUTHOR\r | |
175 | APT was written by the APT team <apt@packages.debian.org>.\r |