You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

587 lines
29 KiB

  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "" [
  4. <!ENTITY % aptent SYSTEM "apt.ent"> %aptent;
  5. <!ENTITY % aptverbatiment SYSTEM "apt-verbatim.ent"> %aptverbatiment;
  6. <!ENTITY % aptvendor SYSTEM "apt-vendor.ent"> %aptvendor;
  7. ]>
  8. <refentry>
  9. <refentryinfo>
  10. &apt-author.jgunthorpe;
  11. &;
  12. &apt-email;
  13. &apt-product;
  14. <!-- The last update date -->
  15. <date>2018-08-17T00:00:00Z</date>
  16. </refentryinfo>
  17. <refmeta>
  18. <refentrytitle>sources.list</refentrytitle>
  19. <manvolnum>5</manvolnum>
  20. <refmiscinfo class="manual">APT</refmiscinfo>
  21. </refmeta>
  22. <!-- Man page title -->
  23. <refnamediv>
  24. <refname>sources.list</refname>
  25. <refpurpose>List of configured APT data sources</refpurpose>
  26. </refnamediv>
  27. <refsect1><title>Description</title>
  28. <para>
  29. The source list <filename>/etc/apt/sources.list</filename> and the
  30. files contained in <filename>/etc/apt/sources.list.d/</filename> are
  31. designed to support any number of active sources and a variety of source
  32. media. The files list one source per line (one-line style) or contain multiline
  33. stanzas defining one or more sources per stanza (deb822 style), with the
  34. most preferred source listed first (in case a single version is
  35. available from more than one source). The information available from the
  36. configured sources is acquired by <command>apt-get update</command> (or
  37. by an equivalent command from another APT front-end).
  38. </para>
  39. </refsect1>
  40. <refsect1><title>sources.list.d</title>
  41. <para>The <filename>/etc/apt/sources.list.d</filename> directory provides
  42. a way to add sources.list entries in separate files.
  43. Two different file formats are allowed as described in the next two sections.
  44. Filenames need to have either the extension <filename>.list</filename> or
  45. <filename>.sources</filename> depending on the contained format.
  46. The filenames may only contain letters (a-z and A-Z),
  47. digits (0-9), underscore (_), hyphen (-) and period (.) characters.
  48. Otherwise APT will print a notice that it has ignored a file, unless that
  49. file matches a pattern in the <literal>Dir::Ignore-Files-Silently</literal>
  50. configuration list - in which case it will be silently ignored.</para>
  51. </refsect1>
  52. <refsect1><title>One-Line-Style Format</title>
  53. <para>
  54. Files in this format have the extension <filename>.list</filename>.
  55. Each line specifying a source starts with a type (e.g. <literal>deb-src</literal>)
  56. followed by options and arguments for this type.
  57. Individual entries cannot be continued onto a following line. Empty lines
  58. are ignored, and a <literal>#</literal> character anywhere on a line marks
  59. the remainder of that line as a comment. Consequently an entry can be
  60. disabled by commenting out the entire line.
  61. If options should be provided they are separated by spaces and all of
  62. them together are enclosed by square brackets (<literal>[]</literal>)
  63. included in the line after the type separated from it with a space.
  64. If an option allows multiple values these are separated from each other
  65. with a comma (<literal>,</literal>). An option name is separated from its
  66. value(s) by an equals sign (<literal>=</literal>). Multivalue options also
  67. have <literal>-=</literal> and <literal>+=</literal> as separators, which
  68. instead of replacing the default with the given value(s) modify the default
  69. value(s) to remove or include the given values.
  70. </para><para>
  71. This is the traditional format and supported by all apt versions.
  72. Note that not all options as described below are supported by all apt versions.
  73. Note also that some older applications parsing this format on their own might not
  74. expect to encounter options as they were uncommon before the introduction of
  75. multi-architecture support.
  76. </para>
  77. </refsect1>
  78. <refsect1><title>deb822-Style Format</title>
  79. <para>
  80. Files in this format have the extension <filename>.sources</filename>.
  81. The format is similar in syntax to other files used by Debian and its
  82. derivatives, such as the metadata files that apt will download from the configured
  83. sources or the <filename>debian/control</filename> file in a Debian source package.
  84. Individual entries are separated by an empty line; additional empty
  85. lines are ignored, and a <literal>#</literal> character at the start of
  86. the line marks the entire line as a comment. An entry can hence be
  87. disabled by commenting out each line belonging to the stanza, but it is
  88. usually easier to add the field "Enabled: no" to the stanza to disable
  89. the entry. Removing the field or setting it to yes re-enables it.
  90. Options have the same syntax as every other field: A field name separated by
  91. a colon (<literal>:</literal>) and optionally spaces from its value(s).
  92. Note especially that multiple values are separated by whitespaces (like spaces,
  93. tabs and newlines), not by commas as in the one-line format.
  94. Multivalue fields like <literal>Architectures</literal> also have
  95. <literal>Architectures-Add</literal> and <literal>Architectures-Remove</literal>
  96. to modify the default value rather than replacing it.
  97. </para><para>
  98. This is a new format supported by apt itself since version 1.1. Previous
  99. versions ignore such files with a notice message as described earlier.
  100. It is intended to make this format gradually the default format,
  101. deprecating the previously described one-line-style format, as it is
  102. easier to create, extend and modify for humans and machines alike
  103. especially if a lot of sources and/or options are involved.
  104. Developers who are working with and/or parsing apt sources are highly
  105. encouraged to add support for this format and to contact the APT team
  106. to coordinate and share this work. Users can freely adopt this format
  107. already, but may encounter problems with software not supporting
  108. the format yet.
  109. </para>
  110. </refsect1>
  111. <refsect1><title>The deb and deb-src Types: General Format</title>
  112. <para>The <literal>deb</literal> type references a typical two-level Debian
  113. archive, <filename>distribution/component</filename>. The
  114. <literal>distribution</literal> is generally a suite name like
  115. <literal>stable</literal> or <literal>testing</literal> or a codename like
  116. <literal>&debian-stable-codename;</literal> or <literal>&debian-testing-codename;</literal>
  117. while component is one of <literal>main</literal>, <literal>contrib</literal> or
  118. <literal>non-free</literal>. The
  119. <literal>deb-src</literal> type references a Debian distribution's source
  120. code in the same form as the <literal>deb</literal> type.
  121. A <literal>deb-src</literal> line is required to fetch source indexes.</para>
  122. <para>The format for two one-line-style entries using the
  123. <literal>deb</literal> and <literal>deb-src</literal> types is:</para>
  124. <literallayout>deb [ option1=value1 option2=value2 ] uri suite [component1] [component2] [...]
  125. deb-src [ option1=value1 option2=value2 ] uri suite [component1] [component2] [...]</literallayout>
  126. <para>Alternatively the equivalent entry in deb822 style looks like this:
  127. <literallayout>
  128. Types: deb deb-src
  129. URIs: uri
  130. Suites: suite
  131. Components: [component1] [component2] [...]
  132. option1: value1
  133. option2: value2
  134. </literallayout>
  135. </para>
  136. <para>The URI for the <literal>deb</literal> type must specify the base of the
  137. Debian distribution, from which APT will find the information it needs.
  138. <literal>suite</literal> can specify an exact path, in which case the
  139. components must be omitted and <literal>suite</literal> must end with
  140. a slash (<literal>/</literal>). This is useful for the case when only a
  141. particular sub-directory of the archive denoted by the URI is of interest.
  142. If <literal>suite</literal> does not specify an exact path, at least
  143. one <literal>component</literal> must be present.</para>
  144. <para><literal>suite</literal> may also contain a variable,
  145. <literal>$(ARCH)</literal>
  146. which expands to the Debian architecture (such as <literal>amd64</literal> or
  147. <literal>armel</literal>) used on the system. This permits architecture-independent
  148. <filename>sources.list</filename> files to be used. In general this is only
  149. of interest when specifying an exact path; <literal>APT</literal> will
  150. automatically generate a URI with the current architecture otherwise.</para>
  151. <para>Especially in the one-line-style format since only one distribution
  152. can be specified per line it may be necessary to have multiple lines for
  153. the same URI, if a subset of all available distributions or components at
  154. that location is desired. APT will sort the URI list after it has
  155. generated a complete set internally, and will collapse multiple
  156. references to the same Internet host, for instance, into a single
  157. connection, so that it does not inefficiently establish a
  158. connection, close it, do something else, and then re-establish a
  159. connection to that same host. APT also parallelizes connections to
  160. different hosts to more effectively deal with sites with low
  161. bandwidth.</para>
  162. <para>It is important to list sources in order of preference, with the most
  163. preferred source listed first. Typically this will result in sorting
  164. by speed from fastest to slowest (CD-ROM followed by hosts on a local
  165. network, followed by distant Internet hosts, for example).</para>
  166. <para>As an example, the sources for your distribution could look like this
  167. in one-line-style format:
  168. <literallayout>&sourceslist-list-format;</literallayout> or like this in
  169. deb822 style format:
  170. <literallayout>&sourceslist-sources-format;</literallayout></para>
  171. </refsect1>
  172. <refsect1><title>The deb and deb-src types: Options</title>
  173. <para>Each source entry can have options specified to modify which source
  174. is accessed and how data is acquired from it. Format, syntax and names
  175. of the options vary between the one-line-style and deb822-style formats
  176. as described, but they both have the same options available. For simplicity
  177. we list the deb822 field name and provide the one-line name in brackets.
  178. Remember that besides setting multivalue options explicitly, there is also
  179. the option to modify them based on the default, but we aren't listing those
  180. names explicitly here. Unsupported options are silently ignored by all
  181. APT versions.
  182. <itemizedlist>
  183. <listitem><para><option>Architectures</option>
  184. (<option>arch</option>) is a multivalue option defining for
  185. which architectures information should be downloaded. If this
  186. option isn't set the default is all architectures as defined by
  187. the <option>APT::Architectures</option> config option.
  188. </para></listitem>
  189. <listitem><para><option>Languages</option>
  190. (<option>lang</option>) is a multivalue option defining for
  191. which languages information such as translated package
  192. descriptions should be downloaded. If this option isn't set
  193. the default is all languages as defined by the
  194. <option>Acquire::Languages</option> config option.
  195. </para></listitem>
  196. <listitem><para><option>Targets</option>
  197. (<option>target</option>) is a multivalue option defining
  198. which download targets apt will try to acquire from this
  199. source. If not specified, the default set is defined by the
  200. <option>Acquire::IndexTargets</option> configuration scope
  201. (targets are specified by their name in the
  202. <literal>Created-By</literal> field).
  203. Additionally, targets can be enabled or disabled by using the
  204. <literal>Identifier</literal> field as an option with a boolean
  205. value instead of using this multivalue option.
  206. </para></listitem>
  207. <listitem><para><option>PDiffs</option> (<option>pdiffs</option>)
  208. is a yes/no value which controls if APT should try to use PDiffs
  209. to update old indexes instead of downloading the new indexes
  210. entirely. The value of this option is ignored if the repository
  211. doesn't announce the availability of PDiffs. Defaults to the
  212. value of the option with the same name for a specific index file
  213. defined in the <option>Acquire::IndexTargets</option> scope,
  214. which itself defaults to the value of configuration option
  215. <option>Acquire::PDiffs</option> which defaults to
  216. <literal>yes</literal>.
  217. </para></listitem>
  218. <listitem><para><option>By-Hash</option> (<option>by-hash</option>)
  219. can have the value <literal>yes</literal>, <literal>no</literal>
  220. or <literal>force</literal> and controls if APT should try to
  221. acquire indexes via a URI constructed from a hashsum of the
  222. expected file instead of using the well-known stable filename
  223. of the index. Using this can avoid hashsum mismatches, but
  224. requires a supporting mirror. A <literal>yes</literal> or
  225. <literal>no</literal> value activates/disables the use of this
  226. feature if this source indicates support for it, while
  227. <literal>force</literal> will enable the feature regardless of
  228. what the source indicates. Defaults to the value of the option
  229. of the same name for a specific index file defined in the
  230. <option>Acquire::IndexTargets</option> scope, which itself
  231. defaults to the value of configuration option
  232. <option>Acquire::By-Hash</option> which defaults to
  233. <literal>yes</literal>.
  234. </para></listitem>
  235. </itemizedlist>
  236. Furthermore, there are options which if set affect
  237. <emphasis>all</emphasis> sources with the same URI and Suite, so they
  238. have to be set on all such entries and can not be varied between
  239. different components. APT will try to detect and error out on such
  240. anomalies.
  241. <itemizedlist>
  242. <listitem><para><option>Allow-Insecure</option> (<option>allow-insecure</option>),
  243. <option>Allow-Weak</option> (<option>allow-weak</option>) and
  244. <option>Allow-Downgrade-To-Insecure</option> (<option>allow-downgrade-to-insecure</option>)
  245. are boolean values which all default to <literal>no</literal>.
  246. If set to <literal>yes</literal> they circumvent parts of &apt-secure;
  247. and should therefore not be used lightly!
  248. </para></listitem>
  249. <listitem><para><option>Trusted</option> (<option>trusted</option>)
  250. is a tri-state value which defaults to APT deciding if a source
  251. is considered trusted or if warnings should be raised before e.g.
  252. packages are installed from this source. This option can be used
  253. to override that decision. The value <literal>yes</literal> tells APT
  254. always to consider this source as trusted, even if it doesn't pass
  255. authentication checks. It disables parts of &apt-secure;, and should
  256. therefore only be used in a local and trusted context (if at all) as
  257. otherwise security is breached. The value <literal>no</literal> does
  258. the opposite, causing the source to be handled as untrusted even if
  259. the authentication checks passed successfully. The default value can't
  260. be set explicitly.
  261. </para></listitem>
  262. <listitem><para><option>Signed-By</option> (<option>signed-by</option>)
  263. is an option to require a repository to pass &apt-secure; verification
  264. with a certain set of keys rather than all trusted keys apt has configured.
  265. It is specified as a list of absolute paths to keyring files (have to be
  266. accessible and readable for the <literal>_apt</literal> system user,
  267. so ensure everyone has read-permissions on the file) and fingerprints
  268. of keys to select from these keyrings. If no keyring files are specified
  269. the default is the <filename>trusted.gpg</filename> keyring and
  270. all keyrings in the <filename>trusted.gpg.d/</filename> directory
  271. (see <command>apt-key fingerprint</command>). If no fingerprint is
  272. specified all keys in the keyrings are selected. A fingerprint will
  273. accept also all signatures by a subkey of this key, if this isn't
  274. desired an exclamation mark (<literal>!</literal>) can be appended to
  275. the fingerprint to disable this behaviour.
  276. The option defaults to the value of the option with the same name
  277. if set in the previously acquired <filename>Release</filename> file
  278. of this repository (only fingerprints can be specified there through).
  279. Otherwise all keys in the trusted keyrings are considered valid
  280. signers for this repository.
  281. </para></listitem>
  282. <listitem><para><option>Check-Valid-Until</option> (<option>check-valid-until</option>)
  283. is a yes/no value which controls if APT should try to detect
  284. replay attacks. A repository creator can declare a time until
  285. which the data provided in the repository should be considered valid,
  286. and if this time is reached, but no new data is provided, the data
  287. is considered expired and an error is raised. Besides
  288. increasing security, as a malicious attacker can't send old data
  289. forever to prevent a user from upgrading to a new version,
  290. this also helps users identify mirrors which are no longer
  291. updated. However, some repositories such as historic archives
  292. are not updated any more by design, so this check can be
  293. disabled by setting this option to <literal>no</literal>.
  294. Defaults to the value of configuration option
  295. <option>Acquire::Check-Valid-Until</option> which itself
  296. defaults to <literal>yes</literal>.
  297. </para></listitem>
  298. <listitem><para><option>Valid-Until-Min</option>
  299. (<option>valid-until-min</option>) and
  300. <option>Valid-Until-Max</option>
  301. (<option>valid-until-max</option>) can be used to raise or
  302. lower the time period in seconds in which the data from this
  303. repository is considered valid. -Max can be especially useful
  304. if the repository provides no Valid-Until field on its Release
  305. file to set your own value, while -Min can be used to increase
  306. the valid time on seldom updated (local) mirrors of a more
  307. frequently updated but less accessible archive (which is in the
  308. sources.list as well) instead of disabling the check entirely.
  309. Default to the value of the configuration options
  310. <option>Acquire::Min-ValidTime</option> and
  311. <option>Acquire::Max-ValidTime</option> which are both unset by
  312. default.
  313. </para></listitem>
  314. <listitem><para><option>Check-Date</option> (<option>check-date</option>)
  315. is a yes/no value which controls if APT should consider
  316. the machine's time correct and hence perform time related
  317. checks, such as verifying that a Release file is not
  318. from the future. Disabling it also disables the
  319. <option>Check-Valid-Until</option> option
  320. mentioned above.
  321. </para></listitem>
  322. <listitem><para><option>Date-Max-Future</option>
  323. (<option>date-max-future</option>) controls how far
  324. from the future a repository may be.
  325. Default to the value of the configuration option
  326. <option>Acquire::Max-FutureTime</option> which is
  327. 10 seconds by default.
  328. </para></listitem>
  329. <listitem><para><option>InRelease-Path</option> (<option>inrelease-path</option>)
  330. determines the path to the InRelease file, relative
  331. to the normal position of an <filename>InRelease</filename> file.
  332. By default, this option is unset and APT will try to fetch an <filename>InRelease</filename>
  333. or, if that fails, a <filename>Release</filename> file and its associated <filename>Release.gpg</filename> file. By setting this option,
  334. the specified path will be tried instead of the InRelease file,
  335. and the fallback to <filename>Release</filename> files will be disabled.
  336. </para></listitem>
  337. </itemizedlist>
  338. </para>
  339. </refsect1>
  340. <refsect1><title>URI Specification</title>
  341. <para>The currently recognized URI types are:
  342. <variablelist>
  343. <varlistentry><term><command>http</command> (&apt-transport-http;)</term>
  344. <listitem><para>
  345. The http scheme specifies an HTTP server for an archive and is the most
  346. commonly used method. The URI can directly include login information if the
  347. archive requires it, but the use of &apt-authconf; should be preferred.
  348. The method also supports SOCKS5 and HTTP(S) proxies either configured via
  349. apt-specific configuration or specified by the environment variable
  350. <envar>http_proxy</envar> in the format (assuming an HTTP proxy requiring
  351. authentication) <replaceable>http://user:pass@server:port/</replaceable>.
  352. The authentication details for proxies can also be supplied via
  353. &apt-authconf;.</para>
  354. <para>Note that these forms of authentication are insecure as the whole
  355. communication with the remote server (or proxy) is not encrypted so a
  356. sufficiently capable attacker can observe and record login as well as all
  357. other interactions. The attacker can <emphasis>not</emphasis> modify the
  358. communication through as APT's data security model is independent of the
  359. chosen transport method. See &apt-secure; for details.</para></listitem>
  360. </varlistentry>
  361. <varlistentry><term><command>https</command> (&apt-transport-https;)</term>
  362. <listitem><para>
  363. The https scheme specifies an HTTPS server for an archive and is very
  364. similar in use and available options to the http scheme. The main
  365. difference is that the communication between apt and server (or proxy) is
  366. encrypted. Note that the encryption does not prevent an attacker from
  367. knowing which server (or proxy) apt is communicating with and deeper
  368. analysis can potentially still reveal which data was downloaded. If this is
  369. a concern the Tor-based schemes mentioned further below might be a suitable
  370. alternative.</para></listitem>
  371. </varlistentry>
  372. <varlistentry><term><command>mirror</command>, <command>mirror+<replaceable>scheme</replaceable></command> (&apt-transport-mirror;)</term>
  373. <listitem><para>
  374. The mirror scheme specifies the location of a mirrorlist. By default the
  375. scheme used for the location is <literal>http</literal>, but any other
  376. scheme can be used via <command>mirror+<replaceable>scheme</replaceable></command>.
  377. The mirrorlist itself can contain many different URIs for mirrors the APT client
  378. can transparently pick, choose and fallback between intended to help both
  379. with distributing the load over the available mirrors and ensuring that
  380. clients can acquire data even if some configured mirrors are not available.
  381. </para></listitem>
  382. </varlistentry>
  383. <varlistentry><term><command>file</command></term>
  384. <listitem><para>
  385. The file scheme allows an arbitrary directory in the file system to be
  386. considered an archive. This is useful for NFS mounts and local mirrors or
  387. archives.</para></listitem>
  388. </varlistentry>
  389. <varlistentry><term><command>cdrom</command></term>
  390. <listitem><para>
  391. The cdrom scheme allows APT to use a local CD-ROM, DVD or USB drive with media
  392. swapping. Use the &apt-cdrom; program to create cdrom entries in the
  393. source list.</para></listitem>
  394. </varlistentry>
  395. <varlistentry><term><command>ftp</command></term>
  396. <listitem><para>
  397. The ftp scheme specifies an FTP server for an archive. Use of FTP is on the
  398. decline in favour of <literal>http</literal> and <literal>https</literal>
  399. and many archives either never offered or are retiring FTP access. If you
  400. still need this method many configuration options for it are available in
  401. the <literal>Acquire::ftp</literal> scope and detailed in &apt-conf;.</para>
  402. <para>Please note that an FTP proxy can be specified
  403. by using the <envar>ftp_proxy</envar> environment variable. It is possible
  404. to specify an HTTP proxy (HTTP proxy servers often understand FTP URLs)
  405. using this environment variable and <emphasis>only</emphasis> this
  406. environment variable. Proxies using HTTP specified in
  407. the configuration file will be ignored.</para></listitem>
  408. </varlistentry>
  409. <varlistentry><term><command>copy</command></term>
  410. <listitem><para>
  411. The copy scheme is identical to the file scheme except that packages are
  412. copied into the cache directory instead of used directly at their location.
  413. This is useful for people using removable media to copy files around with APT.</para></listitem>
  414. </varlistentry>
  415. <varlistentry><term><command>rsh</command></term><term><command>ssh</command></term>
  416. <listitem><para>
  417. The rsh/ssh method invokes RSH/SSH to connect to a remote host and
  418. access the files as a given user. Prior configuration of rhosts or RSA keys
  419. is recommended. The standard <command>find</command> and <command>dd</command>
  420. commands are used to perform the file transfers from the remote host.
  421. </para></listitem>
  422. </varlistentry>
  423. <varlistentry><term>adding more recognizable URI types</term>
  424. <listitem><para>
  425. APT can be extended with more methods shipped in other optional packages, which should
  426. follow the naming scheme <package>apt-transport-<replaceable>method</replaceable></package>.
  427. For instance, the APT team also maintains the package <package>apt-transport-tor</package>,
  428. which provides access methods for HTTP and HTTPS URIs routed via the Tor network.
  429. </para></listitem>
  430. </varlistentry>
  431. </variablelist>
  432. </para>
  433. </refsect1>
  434. <refsect1><title>Examples</title>
  435. <para>Uses the archive stored locally (or NFS mounted) at /home/apt/debian
  436. for stable/main, stable/contrib, and stable/non-free.</para>
  437. <literallayout>deb file:/home/apt/debian stable main contrib non-free</literallayout>
  438. <literallayout>Types: deb
  439. URIs: file:/home/apt/debian
  440. Suites: stable
  441. Components: main contrib non-free</literallayout>
  442. <para>As above, except this uses the unstable (development) distribution.</para>
  443. <literallayout>deb file:/home/apt/debian unstable main contrib non-free</literallayout>
  444. <literallayout>Types: deb
  445. URIs: file:/home/apt/debian
  446. Suites: unstable
  447. Components: main contrib non-free</literallayout>
  448. <para>Sources specification for the above.</para>
  449. <literallayout>deb-src file:/home/apt/debian unstable main contrib non-free</literallayout>
  450. <literallayout>Types: deb-src
  451. URIs: file:/home/apt/debian
  452. Suites: unstable
  453. Components: main contrib non-free</literallayout>
  454. <para>The first line gets package information for the architectures in <literal>APT::Architectures</literal>
  455. while the second always retrieves <literal>amd64</literal> and <literal>armel</literal>.</para>
  456. <literallayout>deb &debian-stable-codename; main
  457. deb [ arch=amd64,armel ] &debian-stable-codename; main</literallayout>
  458. <literallayout>Types: deb
  459. URIs:
  460. Suites: &debian-stable-codename;
  461. Components: main
  462. Types: deb
  463. URIs:
  464. Suites: &debian-stable-codename;
  465. Components: main
  466. Architectures: amd64 armel
  467. </literallayout>
  468. <para>Uses HTTP to access the archive at, and uses only
  469. the hamm/main area.</para>
  470. <literallayout>deb hamm main</literallayout>
  471. <literallayout>Types: deb
  472. URIs:
  473. Suites: hamm
  474. Components: main</literallayout>
  475. <para>Uses FTP to access the archive at, under the debian
  476. directory, and uses only the &debian-stable-codename;/contrib area.</para>
  477. <literallayout>deb &debian-stable-codename; contrib</literallayout>
  478. <literallayout>Types: deb
  479. URIs:
  480. Suites: &debian-stable-codename;
  481. Components: contrib</literallayout>
  482. <para>Uses FTP to access the archive at, under the debian
  483. directory, and uses only the unstable/contrib area. If this line appears as
  484. well as the one in the previous example in <filename>sources.list</filename>
  485. a single FTP session will be used for both resource lines.</para>
  486. <literallayout>deb unstable contrib</literallayout>
  487. <literallayout>Types: deb
  488. URIs:
  489. Suites: unstable
  490. Components: contrib</literallayout>
  491. <para>Uses HTTP to access the archive at, under the
  492. universe directory, and uses only files found under
  493. <filename>unstable/binary-i386</filename> on i386 machines,
  494. <filename>unstable/binary-amd64</filename> on amd64, and so
  495. forth for other supported architectures. [Note this example only
  496. illustrates how to use the substitution variable; official debian
  497. archives are not structured like this]
  498. <literallayout>deb unstable/binary-$(ARCH)/</literallayout>
  499. <literallayout>Types: deb
  500. URIs:
  501. Suites: unstable/binary-$(ARCH)/</literallayout>
  502. </para>
  503. <para>Uses HTTP to get binary packages as well as sources from the stable, testing and unstable
  504. suites and the components main and contrib.</para>
  505. <literallayout>deb stable main contrib
  506. deb-src stable main contrib
  507. deb testing main contrib
  508. deb-src testing main contrib
  509. deb unstable main contrib
  510. deb-src unstable main contrib</literallayout>
  511. <literallayout>Types: deb deb-src
  512. URIs:
  513. Suites: stable testing unstable
  514. Components: main contrib
  515. </literallayout>
  516. </refsect1>
  517. <refsect1><title>See Also</title>
  518. <para>&apt-get;, &apt-conf;, &apt-acquire-additional-files;</para>
  519. </refsect1>
  520. &manbugs;
  521. </refentry>