]> git.saurik.com Git - apt.git/blob - doc/apt.conf.5.xml
prepare new upload
[apt.git] / doc / apt.conf.5.xml
1 <?xml version="1.0" encoding="utf-8" standalone="no"?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4
5 <!ENTITY % aptent SYSTEM "apt.ent">
6 %aptent;
7
8 <!ENTITY % aptverbatiment SYSTEM "apt-verbatim.ent">
9 %aptverbatiment;
10
11 ]>
12
13 <refentry>
14
15 <refentryinfo>
16 &apt-author.jgunthorpe;
17 &apt-author.team;
18 <author>
19 &apt-name.dburrows;
20 <contrib>Initial documentation of Debug::*.</contrib>
21 <email>dburrows@debian.org</email>
22 </author>
23 &apt-email;
24 &apt-product;
25 <!-- The last update date -->
26 <date>2012-06-09T00:00:00Z</date>
27 </refentryinfo>
28
29 <refmeta>
30 <refentrytitle>apt.conf</refentrytitle>
31 <manvolnum>5</manvolnum>
32 <refmiscinfo class="manual">APT</refmiscinfo>
33 </refmeta>
34
35 <!-- Man page title -->
36 <refnamediv>
37 <refname>apt.conf</refname>
38 <refpurpose>Configuration file for APT</refpurpose>
39 </refnamediv>
40
41 <refsect1><title>Description</title>
42 <para><filename>/etc/apt/apt.conf</filename> is the main configuration
43 file shared by all the tools in the APT suite of tools, though it is by
44 no means the only place options can be set. The suite also shares a common
45 command line parser to provide a uniform environment.</para>
46
47 <orderedlist>
48 <para>When an APT tool starts up it will read the configuration files
49 in the following order:</para>
50 <listitem><para>the file specified by the <envar>APT_CONFIG</envar>
51 environment variable (if any)</para></listitem>
52 <listitem><para>all files in <literal>Dir::Etc::Parts</literal> in
53 alphanumeric ascending order which have either no or "<literal>conf</literal>"
54 as filename extension and which only contain alphanumeric,
55 hyphen (-), underscore (_) and period (.) characters.
56 Otherwise APT will print a notice that it has ignored a file, unless that
57 file matches a pattern in the <literal>Dir::Ignore-Files-Silently</literal>
58 configuration list - in which case it will be silently ignored.</para></listitem>
59 <listitem><para>the main configuration file specified by
60 <literal>Dir::Etc::main</literal></para></listitem>
61 <listitem><para>the command line options are applied to override the
62 configuration directives or to load even more configuration files.</para></listitem>
63 </orderedlist>
64 </refsect1>
65 <refsect1><title>Syntax</title>
66 <para>The configuration file is organized in a tree with options organized into
67 functional groups. Option specification is given with a double colon
68 notation; for instance <literal>APT::Get::Assume-Yes</literal> is an option within
69 the APT tool group, for the Get tool. Options do not inherit from their
70 parent groups.</para>
71
72 <para>Syntactically the configuration language is modeled after what the ISC tools
73 such as bind and dhcp use. Lines starting with
74 <literal>//</literal> are treated as comments (ignored), as well as all text
75 between <literal>/*</literal> and <literal>*/</literal>, just like C/C++ comments.
76 Each line is of the form
77 <literal>APT::Get::Assume-Yes "true";</literal>.
78 The quotation marks and trailing semicolon are required.
79 The value must be on one line, and there is no kind of string concatenation.
80 Values must not include backslashes or extra quotation marks.
81 Option names are made up of alphanumeric characters and the characters "/-:._+".
82 A new scope can be opened with curly braces, like this:</para>
83
84 <informalexample><programlisting>
85 APT {
86 Get {
87 Assume-Yes "true";
88 Fix-Broken "true";
89 };
90 };
91 </programlisting></informalexample>
92
93 <para>with newlines placed to make it more readable. Lists can be created by
94 opening a scope and including a single string enclosed in quotes followed by a
95 semicolon. Multiple entries can be included, separated by a semicolon.</para>
96
97 <informalexample><programlisting>
98 DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";};
99 </programlisting></informalexample>
100
101 <para>In general the sample configuration file &configureindex;
102 is a good guide for how it should look.</para>
103
104 <para>Case is not significant in names of configuration items, so in the
105 previous example you could use <literal>dpkg::pre-install-pkgs</literal>.</para>
106
107 <para>Names for the configuration items are optional if a list is defined as can be seen in
108 the <literal>DPkg::Pre-Install-Pkgs</literal> example above. If you don't specify a name a
109 new entry will simply add a new option to the list. If you specify a name you can override
110 the option in the same way as any other option by reassigning a new value to the option.</para>
111
112 <para>Two special commands are defined: <literal>#include</literal> (which is
113 deprecated and not supported by alternative implementations) and
114 <literal>#clear</literal>. <literal>#include</literal> will include the
115 given file, unless the filename ends in a slash, in which case the whole
116 directory is included.
117 <literal>#clear</literal> is used to erase a part of the configuration tree. The
118 specified element and all its descendants are erased.
119 (Note that these lines also need to end with a semicolon.)</para>
120
121 <para>
122 The <literal>#clear</literal> command is the only way to delete a list or
123 a complete scope. Reopening a scope (or using the syntax described below
124 with an appended <literal>::</literal>) will <emphasis>not</emphasis>
125 override previously written entries. Options can only be overridden by
126 addressing a new value to them - lists and scopes can't be overridden,
127 only cleared.
128 </para>
129
130 <para>All of the APT tools take an -o option which allows an arbitrary configuration
131 directive to be specified on the command line. The syntax is a full option
132 name (<literal>APT::Get::Assume-Yes</literal> for instance) followed by an equals
133 sign then the new value of the option. To append a new element to a list, add a
134 trailing <literal>::</literal> to the name of the list.
135 (As you might suspect, the scope syntax can't be used on the command line.)</para>
136
137 <para>
138 Note that appending items to a list using <literal>::</literal> only works
139 for one item per line, and that you should not use it in combination with
140 the scope syntax (which adds <literal>::</literal> implicitly). Using both
141 syntaxes together will trigger a bug which some users unfortunately depend
142 on: an option with the unusual name "<literal>::</literal>" which acts
143 like every other option with a name. This introduces many problems; for
144 one thing, users who write multiple lines in this
145 <emphasis>wrong</emphasis> syntax in the hope of appending to a list will
146 achieve the opposite, as only the last assignment for this option
147 "<literal>::</literal>" will be used. Future versions of APT will raise
148 errors and stop working if they encounter this misuse, so please correct
149 such statements now while APT doesn't explicitly complain about them.
150 </para>
151 </refsect1>
152
153 <refsect1><title>The APT Group</title>
154 <para>This group of options controls general APT behavior as well as holding the
155 options for all of the tools.</para>
156
157 <variablelist>
158 <varlistentry><term><option>Architecture</option></term>
159 <listitem><para>System Architecture; sets the architecture to use when fetching files and
160 parsing package lists. The internal default is the architecture apt was
161 compiled for.</para></listitem>
162 </varlistentry>
163
164 <varlistentry><term><option>Architectures</option></term>
165 <listitem><para>
166 All Architectures the system supports. For instance, CPUs implementing
167 the <literal>amd64</literal> (also called <literal>x86-64</literal>)
168 instruction set are also able to execute binaries compiled for the
169 <literal>i386</literal> (<literal>x86</literal>) instruction set. This
170 list is used when fetching files and parsing package lists. The
171 initial default is always the system's native architecture
172 (<literal>APT::Architecture</literal>), and foreign architectures are
173 added to the default list when they are registered via
174 <command>dpkg --add-architecture</command>.
175 </para></listitem>
176 </varlistentry>
177
178 <varlistentry><term><option>Default-Release</option></term>
179 <listitem><para>Default release to install packages from if more than one
180 version is available. Contains release name, codename or release version. Examples: 'stable', 'testing',
181 'unstable', '&stable-codename;', '&testing-codename;', '4.0', '5.0*'. See also &apt-preferences;.</para></listitem>
182 </varlistentry>
183
184 <varlistentry><term><option>Ignore-Hold</option></term>
185 <listitem><para>Ignore held packages; this global option causes the problem resolver to
186 ignore held packages in its decision making.</para></listitem>
187 </varlistentry>
188
189 <varlistentry><term><option>Clean-Installed</option></term>
190 <listitem><para>Defaults to on. When turned on the autoclean feature will remove any packages
191 which can no longer be downloaded from the cache. If turned off then
192 packages that are locally installed are also excluded from cleaning - but
193 note that APT provides no direct means to reinstall them.</para></listitem>
194 </varlistentry>
195
196 <varlistentry><term><option>Immediate-Configure</option></term>
197 <listitem><para>
198 Defaults to on, which will cause APT to install essential and important
199 packages as soon as possible in an install/upgrade operation, in order
200 to limit the effect of a failing &dpkg; call. If this option is
201 disabled, APT treats an important package in the same way as an extra
202 package: between the unpacking of the package A and its configuration
203 there can be many other unpack or configuration calls for other
204 unrelated packages B, C etc. If these cause the &dpkg; call to fail
205 (e.g. because package B's maintainer scripts generate an error), this
206 results in a system state in which package A is unpacked but
207 unconfigured - so any package depending on A is now no longer
208 guaranteed to work, as its dependency on A is no longer satisfied.
209 </para><para>
210 The immediate configuration marker is also applied in the potentially
211 problematic case of circular dependencies, since a dependency with the
212 immediate flag is equivalent to a Pre-Dependency. In theory this allows
213 APT to recognise a situation in which it is unable to perform immediate
214 configuration, abort, and suggest to the user that the option should be
215 temporarily deactivated in order to allow the operation to proceed.
216 Note the use of the word "theory" here; in the real world this problem
217 has rarely been encountered, in non-stable distribution versions, and
218 was caused by wrong dependencies of the package in question or by a
219 system in an already broken state; so you should not blindly disable
220 this option, as the scenario mentioned above is not the only problem it
221 can help to prevent in the first place.
222 </para><para>
223 Before a big operation like <literal>dist-upgrade</literal> is run
224 with this option disabled you should try to explicitly
225 <literal>install</literal> the package APT is unable to configure
226 immediately; but please make sure you also report your problem to your
227 distribution and to the APT team with the buglink below, so they can
228 work on improving or correcting the upgrade process.
229 </para></listitem>
230 </varlistentry>
231
232 <varlistentry><term><option>Force-LoopBreak</option></term>
233 <listitem><para>
234 Never enable this option unless you <emphasis>really</emphasis> know
235 what you are doing. It permits APT to temporarily remove an essential
236 package to break a Conflicts/Conflicts or Conflicts/Pre-Depends loop
237 between two essential packages. <emphasis>Such a loop should never exist
238 and is a grave bug</emphasis>. This option will work if the essential
239 packages are not <command>tar</command>, <command>gzip</command>,
240 <command>libc</command>, <command>dpkg</command>, <command>dash</command>
241 or anything that those packages depend on.
242 </para></listitem>
243 </varlistentry>
244
245 <varlistentry><term><option>Cache-Start</option></term><term><option>Cache-Grow</option></term><term><option>Cache-Limit</option></term>
246 <listitem><para>APT uses since version 0.7.26 a resizable memory mapped cache file to store the available
247 information. <literal>Cache-Start</literal> acts as a hint of the size the cache will grow to,
248 and is therefore the amount of memory APT will request at startup. The default value is
249 20971520 bytes (~20 MB). Note that this amount of space needs to be available for APT;
250 otherwise it will likely fail ungracefully, so for memory restricted devices this value should
251 be lowered while on systems with a lot of configured sources it should be increased.
252 <literal>Cache-Grow</literal> defines in bytes with the default of 1048576 (~1 MB) how much
253 the cache size will be increased in the event the space defined by <literal>Cache-Start</literal>
254 is not enough. This value will be applied again and again until either the cache is big
255 enough to store all information or the size of the cache reaches the <literal>Cache-Limit</literal>.
256 The default of <literal>Cache-Limit</literal> is 0 which stands for no limit.
257 If <literal>Cache-Grow</literal> is set to 0 the automatic growth of the cache is disabled.
258 </para></listitem>
259 </varlistentry>
260
261 <varlistentry><term><option>Build-Essential</option></term>
262 <listitem><para>Defines which packages are considered essential build dependencies.</para></listitem>
263 </varlistentry>
264
265 <varlistentry><term><option>Get</option></term>
266 <listitem><para>The Get subsection controls the &apt-get; tool; please see its
267 documentation for more information about the options here.</para></listitem>
268 </varlistentry>
269
270 <varlistentry><term><option>Cache</option></term>
271 <listitem><para>The Cache subsection controls the &apt-cache; tool; please see its
272 documentation for more information about the options here.</para></listitem>
273 </varlistentry>
274
275 <varlistentry><term><option>CDROM</option></term>
276 <listitem><para>The CDROM subsection controls the &apt-cdrom; tool; please see its
277 documentation for more information about the options here.</para></listitem>
278 </varlistentry>
279 </variablelist>
280 </refsect1>
281
282 <refsect1><title>The Acquire Group</title>
283 <para>The <literal>Acquire</literal> group of options controls the
284 download of packages as well as the various "acquire methods" responsible
285 for the download itself (see also &sources-list;).</para>
286
287 <variablelist>
288 <varlistentry><term><option>Check-Valid-Until</option></term>
289 <listitem><para>
290 Security related option defaulting to true, as giving a Release file's
291 validation an expiration date prevents replay attacks over a long
292 timescale, and can also for example help users to identify mirrors
293 that are no longer updated - but the feature depends on the
294 correctness of the clock on the user system. Archive maintainers are
295 encouraged to create Release files with the
296 <literal>Valid-Until</literal> header, but if they don't or a
297 stricter value is desired the <literal>Max-ValidTime</literal>
298 option below can be used.
299 </para></listitem>
300 </varlistentry>
301
302 <varlistentry><term><option>Max-ValidTime</option></term>
303 <listitem><para>Maximum time (in seconds) after its creation (as indicated
304 by the <literal>Date</literal> header) that the <filename>Release</filename>
305 file should be considered valid.
306 If the Release file itself includes a <literal>Valid-Until</literal> header
307 the earlier date of the two is used as the expiration date.
308 The default value is <literal>0</literal> which stands for "valid forever".
309 Archive specific settings can be made by appending the label of the archive
310 to the option name.
311 </para></listitem>
312 </varlistentry>
313
314 <varlistentry><term><option>Min-ValidTime</option></term>
315 <listitem><para>Minimum time (in seconds) after its creation (as indicated
316 by the <literal>Date</literal> header) that the <filename>Release</filename>
317 file should be considered valid.
318 Use this if you need to use a seldom updated (local) mirror of a more
319 frequently updated archive with a <literal>Valid-Until</literal> header
320 instead of completely disabling the expiration date checking.
321 Archive specific settings can and should be used by appending the label of
322 the archive to the option name.
323 </para></listitem>
324 </varlistentry>
325
326 <varlistentry><term><option>PDiffs</option></term>
327 <listitem><para>Try to download deltas called <literal>PDiffs</literal> for
328 indexes (like <filename>Packages</filename> files) instead of downloading
329 whole ones. True by default.</para>
330 <para>Two sub-options to limit the use of PDiffs are also available:
331 <literal>FileLimit</literal> can be used to specify a maximum number of
332 PDiff files should be downloaded to update a file. <literal>SizeLimit</literal>
333 on the other hand is the maximum percentage of the size of all patches
334 compared to the size of the targeted file. If one of these limits is
335 exceeded the complete file is downloaded instead of the patches.
336 </para></listitem>
337 </varlistentry>
338
339 <varlistentry><term><option>Queue-Mode</option></term>
340 <listitem><para>Queuing mode; <literal>Queue-Mode</literal> can be one of <literal>host</literal> or
341 <literal>access</literal> which determines how APT parallelizes outgoing
342 connections. <literal>host</literal> means that one connection per target host
343 will be opened, <literal>access</literal> means that one connection per URI type
344 will be opened.</para></listitem>
345 </varlistentry>
346
347 <varlistentry><term><option>Retries</option></term>
348 <listitem><para>Number of retries to perform. If this is non-zero APT will retry failed
349 files the given number of times.</para></listitem>
350 </varlistentry>
351
352 <varlistentry><term><option>Source-Symlinks</option></term>
353 <listitem><para>Use symlinks for source archives. If set to true then source archives will
354 be symlinked when possible instead of copying. True is the default.</para></listitem>
355 </varlistentry>
356
357 <varlistentry><term><option>http</option></term>
358 <listitem><para><literal>http::Proxy</literal> sets the default proxy to use for HTTP
359 URIs. It is in the standard form of <literal>http://[[user][:pass]@]host[:port]/</literal>.
360 Per host proxies can also be specified by using the form
361 <literal>http::Proxy::&lt;host&gt;</literal> with the special keyword <literal>DIRECT</literal>
362 meaning to use no proxies. If no one of the above settings is specified,
363 <envar>http_proxy</envar> environment variable
364 will be used.</para>
365
366 <para>Three settings are provided for cache control with HTTP/1.1 compliant
367 proxy caches.
368 <literal>No-Cache</literal> tells the proxy not to use its cached
369 response under any circumstances.
370 <literal>Max-Age</literal> sets the allowed maximum age (in seconds) of
371 an index file in the cache of the proxy.
372 <literal>No-Store</literal> specifies that the proxy should not store
373 the requested archive files in its cache, which can be used to prevent
374 the proxy from polluting its cache with (big) .deb files.</para>
375
376 <para>The option <literal>timeout</literal> sets the timeout timer used by the method;
377 this value applies to the connection as well as the data timeout.</para>
378
379 <para>The setting <literal>Acquire::http::Pipeline-Depth</literal> can be used to
380 enable HTTP pipelining (RFC 2616 section 8.1.2.2) which can be beneficial e.g. on
381 high-latency connections. It specifies how many requests are sent in a pipeline.
382 Previous APT versions had a default of 10 for this setting, but the default value
383 is now 0 (= disabled) to avoid problems with the ever-growing amount of webservers
384 and proxies which choose to not conform to the HTTP/1.1 specification.</para>
385
386 <para><literal>Acquire::http::AllowRedirect</literal> controls whether APT will follow
387 redirects, which is enabled by default.</para>
388
389 <para>The used bandwidth can be limited with
390 <literal>Acquire::http::Dl-Limit</literal> which accepts integer
391 values in kilobytes per second. The default value is 0 which
392 deactivates the limit and tries to use all available bandwidth.
393 Note that this option implicitly disables downloading from
394 multiple servers at the same time.</para>
395
396 <para><literal>Acquire::http::User-Agent</literal> can be used to set a different
397 User-Agent for the http download method as some proxies allow access for clients
398 only if the client uses a known identifier.</para>
399
400 <para><literal>Acquire::http::Proxy-Auto-Detect</literal> can be used to
401 specify an external command to discover the http proxy to use. Apt expects
402 the command to output the proxy on stdout in the style
403 <literal>http://proxy:port/</literal>. This will override the
404 generic <literal>Acquire::http::Proxy</literal> but not any specific
405 host proxy configuration set via
406 <literal>Acquire::http::Proxy::$HOST</literal>.
407
408 See the &squid-deb-proxy-client; package for an example implementation that
409 uses avahi. This option takes precedence over the legacy option name
410 <literal>ProxyAutoDetect</literal>.
411 </para>
412
413 </listitem>
414 </varlistentry>
415
416 <varlistentry><term><option>https</option></term>
417 <listitem><para>
418 The <literal>Cache-control</literal>, <literal>Timeout</literal>,
419 <literal>AllowRedirect</literal>, <literal>Dl-Limit</literal> and
420 <literal>proxy</literal> options work for HTTPS URIs in the same way
421 as for the <literal>http</literal> method, and default to the same
422 values if they are not explicitly set. The
423 <literal>Pipeline-Depth</literal> option is not yet supported.
424 </para>
425
426 <para><literal>CaInfo</literal> suboption specifies place of file that
427 holds info about trusted certificates.
428 <literal>&lt;host&gt;::CaInfo</literal> is the corresponding per-host option.
429 <literal>Verify-Peer</literal> boolean suboption determines whether or not the
430 server's host certificate should be verified against trusted certificates.
431 <literal>&lt;host&gt;::Verify-Peer</literal> is the corresponding per-host option.
432 <literal>Verify-Host</literal> boolean suboption determines whether or not the
433 server's hostname should be verified.
434 <literal>&lt;host&gt;::Verify-Host</literal> is the corresponding per-host option.
435 <literal>SslCert</literal> determines what certificate to use for client
436 authentication. <literal>&lt;host&gt;::SslCert</literal> is the corresponding per-host option.
437 <literal>SslKey</literal> determines what private key to use for client
438 authentication. <literal>&lt;host&gt;::SslKey</literal> is the corresponding per-host option.
439 <literal>SslForceVersion</literal> overrides default SSL version to use.
440 It can contain either of the strings '<literal>TLSv1</literal>' or
441 '<literal>SSLv3</literal>'.
442 <literal>&lt;host&gt;::SslForceVersion</literal> is the corresponding per-host option.
443 </para></listitem></varlistentry>
444
445 <varlistentry><term><option>ftp</option></term>
446 <listitem><para>
447 <literal>ftp::Proxy</literal> sets the default proxy to use for FTP URIs.
448 It is in the standard form of <literal>ftp://[[user][:pass]@]host[:port]/</literal>.
449 Per host proxies can also be specified by using the form
450 <literal>ftp::Proxy::&lt;host&gt;</literal> with the special keyword <literal>DIRECT</literal>
451 meaning to use no proxies. If no one of the above settings is specified,
452 <envar>ftp_proxy</envar> environment variable
453 will be used. To use an FTP
454 proxy you will have to set the <literal>ftp::ProxyLogin</literal> script in the
455 configuration file. This entry specifies the commands to send to tell
456 the proxy server what to connect to. Please see
457 &configureindex; for an example of
458 how to do this. The substitution variables representing the corresponding
459 URI component are <literal>$(PROXY_USER)</literal>,
460 <literal>$(PROXY_PASS)</literal>, <literal>$(SITE_USER)</literal>,
461 <literal>$(SITE_PASS)</literal>, <literal>$(SITE)</literal> and
462 <literal>$(SITE_PORT)</literal>.</para>
463
464 <para>The option <literal>timeout</literal> sets the timeout timer used by the method;
465 this value applies to the connection as well as the data timeout.</para>
466
467 <para>Several settings are provided to control passive mode. Generally it is
468 safe to leave passive mode on; it works in nearly every environment.
469 However, some situations require that passive mode be disabled and port
470 mode FTP used instead. This can be done globally or for connections that
471 go through a proxy or for a specific host (see the sample config file
472 for examples).</para>
473
474 <para>It is possible to proxy FTP over HTTP by setting the <envar>ftp_proxy</envar>
475 environment variable to an HTTP URL - see the discussion of the http method
476 above for syntax. You cannot set this in the configuration file and it is
477 not recommended to use FTP over HTTP due to its low efficiency.</para>
478
479 <para>The setting <literal>ForceExtended</literal> controls the use of RFC2428
480 <literal>EPSV</literal> and <literal>EPRT</literal> commands. The default is false, which means
481 these commands are only used if the control connection is IPv6. Setting this
482 to true forces their use even on IPv4 connections. Note that most FTP servers
483 do not support RFC2428.</para></listitem>
484 </varlistentry>
485
486 <varlistentry><term><option>cdrom</option></term>
487 <listitem><para>
488 For URIs using the <literal>cdrom</literal> method, the only configurable
489 option is the mount point, <literal>cdrom::Mount</literal>, which must be
490 the mount point for the CD-ROM (or DVD, or whatever) drive as specified in
491 <filename>/etc/fstab</filename>. It is possible to provide alternate mount
492 and unmount commands if your mount point cannot be listed in the fstab.
493 The syntax is to put <literallayout>/cdrom/::Mount "foo";</literallayout> within
494 the <literal>cdrom</literal> block. It is important to have the trailing slash.
495 Unmount commands can be specified using UMount.
496 </para></listitem>
497 </varlistentry>
498
499 <varlistentry><term><option>gpgv</option></term>
500 <listitem><para>
501 For GPGV URIs the only configurable option is <literal>gpgv::Options</literal>,
502 which passes additional parameters to gpgv.
503 </para></listitem>
504 </varlistentry>
505
506 <varlistentry><term><option>CompressionTypes</option></term>
507 <listitem><para>List of compression types which are understood by the acquire methods.
508 Files like <filename>Packages</filename> can be available in various compression formats.
509 By default the acquire methods can decompress <command>bzip2</command>, <command>lzma</command>
510 and <command>gzip</command> compressed files; with this setting more formats can be added
511 on the fly or the used method can be changed. The syntax for this is:
512 <synopsis>Acquire::CompressionTypes::<replaceable>FileExtension</replaceable> "<replaceable>Methodname</replaceable>";</synopsis>
513 </para><para>Also, the <literal>Order</literal> subgroup can be used to define in which order
514 the acquire system will try to download the compressed files. The acquire system will try the first
515 and proceed with the next compression type in this list on error, so to prefer one over the other type
516 simply add the preferred type first - default types not already added will be implicitly appended
517 to the end of the list, so e.g. <synopsis>Acquire::CompressionTypes::Order:: "gz";</synopsis> can
518 be used to prefer <command>gzip</command> compressed files over <command>bzip2</command> and <command>lzma</command>.
519 If <command>lzma</command> should be preferred over <command>gzip</command> and <command>bzip2</command> the
520 configure setting should look like this: <synopsis>Acquire::CompressionTypes::Order { "lzma"; "gz"; };</synopsis>
521 It is not needed to add <literal>bz2</literal> to the list explicitly as it will be added automatically.</para>
522 <para>Note that the
523 <literal>Dir::Bin::<replaceable>Methodname</replaceable></literal>
524 will be checked at run time. If this option has been set, the
525 method will only be used if this file exists; e.g. for the
526 <literal>bzip2</literal> method (the inbuilt) setting is:
527 <literallayout>Dir::Bin::bzip2 "/bin/bzip2";</literallayout>
528 Note also that list entries specified on the command line will be added at the end of the list
529 specified in the configuration files, but before the default entries. To prefer a type in this case
530 over the ones specified in the configuration files you can set the option direct - not in list style.
531 This will not override the defined list; it will only prefix the list with this type.</para>
532 <para>The special type <literal>uncompressed</literal> can be used to give uncompressed files a
533 preference, but note that most archives don't provide uncompressed files so this is mostly only
534 useable for local mirrors.</para></listitem>
535 </varlistentry>
536
537 <varlistentry><term><option>GzipIndexes</option></term>
538 <listitem><para>
539 When downloading <literal>gzip</literal> compressed indexes (Packages, Sources, or
540 Translations), keep them gzip compressed locally instead of unpacking
541 them. This saves quite a lot of disk space at the expense of more CPU
542 requirements when building the local package caches. False by default.
543 </para></listitem>
544 </varlistentry>
545
546 <varlistentry><term><option>Languages</option></term>
547 <listitem><para>The Languages subsection controls which <filename>Translation</filename> files are downloaded
548 and in which order APT tries to display the description-translations. APT will try to display the first
549 available description in the language which is listed first. Languages can be defined with their
550 short or long language codes. Note that not all archives provide <filename>Translation</filename>
551 files for every language - the long language codes are especially rare.</para>
552 <para>The default list includes "environment" and "en". "<literal>environment</literal>" has a special meaning here:
553 it will be replaced at runtime with the language codes extracted from the <literal>LC_MESSAGES</literal> environment variable.
554 It will also ensure that these codes are not included twice in the list. If <literal>LC_MESSAGES</literal>
555 is set to "C" only the <filename>Translation-en</filename> file (if available) will be used.
556 To force APT to use no Translation file use the setting <literal>Acquire::Languages=none</literal>. "<literal>none</literal>"
557 is another special meaning code which will stop the search for a suitable <filename>Translation</filename> file.
558 This tells APT to download these translations too, without actually
559 using them unless the environment specifies the languages. So the
560 following example configuration will result in the order "en, de" in an
561 English locale or "de, en" in a German one. Note that "fr" is
562 downloaded, but not used unless APT is used in a French locale (where
563 the order would be "fr, de, en").
564 <programlisting>Acquire::Languages { "environment"; "de"; "en"; "none"; "fr"; };</programlisting></para>
565 <para>Note: To prevent problems resulting from APT being executed in different environments
566 (e.g. by different users or by other programs) all Translation files which are found in
567 <filename>/var/lib/apt/lists/</filename> will be added to the end of the list
568 (after an implicit "<literal>none</literal>").</para>
569 </listitem>
570 </varlistentry>
571
572 <varlistentry><term><option>ForceIPv4</option></term>
573 <listitem><para>
574 When downloading, force to use only the IPv4 protocol.
575 </para></listitem>
576 </varlistentry>
577
578 <varlistentry><term><option>ForceIPv6</option></term>
579 <listitem><para>
580 When downloading, force to use only the IPv6 protocol.
581 </para></listitem>
582 </varlistentry>
583
584 </variablelist>
585 </refsect1>
586
587 <refsect1><title>Directories</title>
588
589 <para>The <literal>Dir::State</literal> section has directories that pertain to local
590 state information. <literal>lists</literal> is the directory to place downloaded
591 package lists in and <literal>status</literal> is the name of the &dpkg; status file.
592 <literal>preferences</literal> is the name of the APT <filename>preferences</filename> file.
593 <literal>Dir::State</literal> contains the default directory to prefix on all
594 sub-items if they do not start with <filename>/</filename> or <filename>./</filename>.</para>
595
596 <para><literal>Dir::Cache</literal> contains locations pertaining to local cache
597 information, such as the two package caches <literal>srcpkgcache</literal> and
598 <literal>pkgcache</literal> as well as the location to place downloaded archives,
599 <literal>Dir::Cache::archives</literal>. Generation of caches can be turned off
600 by setting their names to the empty string. This will slow down startup but
601 save disk space. It is probably preferable to turn off the pkgcache rather
602 than the srcpkgcache. Like <literal>Dir::State</literal> the default
603 directory is contained in <literal>Dir::Cache</literal></para>
604
605 <para><literal>Dir::Etc</literal> contains the location of configuration files,
606 <literal>sourcelist</literal> gives the location of the sourcelist and
607 <literal>main</literal> is the default configuration file (setting has no effect,
608 unless it is done from the config file specified by
609 <envar>APT_CONFIG</envar>).</para>
610
611 <para>The <literal>Dir::Parts</literal> setting reads in all the config fragments in
612 lexical order from the directory specified. After this is done then the
613 main config file is loaded.</para>
614
615 <para>Binary programs are pointed to by <literal>Dir::Bin</literal>. <literal>Dir::Bin::Methods</literal>
616 specifies the location of the method handlers and <literal>gzip</literal>,
617 <literal>bzip2</literal>, <literal>lzma</literal>,
618 <literal>dpkg</literal>, <literal>apt-get</literal> <literal>dpkg-source</literal>
619 <literal>dpkg-buildpackage</literal> and <literal>apt-cache</literal> specify the location
620 of the respective programs.</para>
621
622 <para>
623 The configuration item <literal>RootDir</literal> has a special
624 meaning. If set, all paths in <literal>Dir::</literal> will be
625 relative to <literal>RootDir</literal>, <emphasis>even paths that
626 are specified absolutely</emphasis>. So, for instance, if
627 <literal>RootDir</literal> is set to
628 <filename>/tmp/staging</filename> and
629 <literal>Dir::State::status</literal> is set to
630 <filename>/var/lib/dpkg/status</filename>, then the status file
631 will be looked up in
632 <filename>/tmp/staging/var/lib/dpkg/status</filename>.
633 </para>
634
635 <para>
636 The <literal>Ignore-Files-Silently</literal> list can be used to specify
637 which files APT should silently ignore while parsing the files in the
638 fragment directories. Per default a file which end with <literal>.disabled</literal>,
639 <literal>~</literal>, <literal>.bak</literal> or <literal>.dpkg-[a-z]+</literal>
640 is silently ignored. As seen in the last default value these patterns can use regular
641 expression syntax.
642 </para>
643 </refsect1>
644
645 <refsect1><title>APT in DSelect</title>
646 <para>
647 When APT is used as a &dselect; method several configuration directives
648 control the default behavior. These are in the <literal>DSelect</literal> section.</para>
649
650 <variablelist>
651 <varlistentry><term><option>Clean</option></term>
652 <listitem><para>Cache Clean mode; this value may be one of
653 <literal>always</literal>, <literal>prompt</literal>,
654 <literal>auto</literal>, <literal>pre-auto</literal> and
655 <literal>never</literal>.
656 <literal>always</literal> and <literal>prompt</literal> will remove
657 all packages from the cache after upgrading, <literal>prompt</literal>
658 (the default) does so conditionally.
659 <literal>auto</literal> removes only those packages which are no longer
660 downloadable (replaced with a new version for instance).
661 <literal>pre-auto</literal> performs this action before downloading
662 new packages.</para></listitem>
663 </varlistentry>
664
665 <varlistentry><term><option>options</option></term>
666 <listitem><para>The contents of this variable are passed to &apt-get; as command line
667 options when it is run for the install phase.</para></listitem>
668 </varlistentry>
669
670 <varlistentry><term><option>Updateoptions</option></term>
671 <listitem><para>The contents of this variable are passed to &apt-get; as command line
672 options when it is run for the update phase.</para></listitem>
673 </varlistentry>
674
675 <varlistentry><term><option>PromptAfterUpdate</option></term>
676 <listitem><para>If true the [U]pdate operation in &dselect; will always prompt to continue.
677 The default is to prompt only on error.</para></listitem>
678 </varlistentry>
679 </variablelist>
680 </refsect1>
681
682 <refsect1><title>How APT calls &dpkg;</title>
683 <para>Several configuration directives control how APT invokes &dpkg;. These are
684 in the <literal>DPkg</literal> section.</para>
685
686 <variablelist>
687 <varlistentry><term><option>options</option></term>
688 <listitem><para>This is a list of options to pass to &dpkg;. The options must be specified
689 using the list notation and each list item is passed as a single argument
690 to &dpkg;.</para></listitem>
691 </varlistentry>
692
693 <varlistentry><term><option>Pre-Invoke</option></term><term><option>Post-Invoke</option></term>
694 <listitem><para>This is a list of shell commands to run before/after invoking &dpkg;.
695 Like <literal>options</literal> this must be specified in list notation. The
696 commands are invoked in order using <filename>/bin/sh</filename>; should any
697 fail APT will abort.</para></listitem>
698 </varlistentry>
699
700 <varlistentry><term><option>Pre-Install-Pkgs</option></term>
701 <listitem><para>This is a list of shell commands to run before invoking &dpkg;. Like
702 <literal>options</literal> this must be specified in list notation. The commands
703 are invoked in order using <filename>/bin/sh</filename>; should any fail APT
704 will abort. APT will pass the filenames of all .deb files it is going to
705 install to the commands, one per line on the requested file descriptor, defaulting
706 to standard input.</para>
707
708 <para>Version 2 of this protocol dumps more information, including the
709 protocol version, the APT configuration space and the packages, files
710 and versions being changed. Version 3 adds the architecture and <literal>MultiArch</literal>
711 flag to each version being dumped.</para>
712
713 <para>The version of the protocol to be used for the command
714 <literal><replaceable>cmd</replaceable></literal> can be chosen by setting
715 <literal>DPkg::Tools::options::<replaceable>cmd</replaceable>::Version</literal>
716 accordingly, the default being version 1. If APT isn't supporting the requested
717 version it will send the information in the highest version it has support for instead.
718 </para>
719
720 <para>The file descriptor to be used to send the information can be requested with
721 <literal>DPkg::Tools::options::<replaceable>cmd</replaceable>::InfoFD</literal>
722 which defaults to <literal>0</literal> for standard input and is available since
723 version 0.9.11. Support for the option can be detected by looking for the environment
724 variable <envar>APT_HOOK_INFO_FD</envar> which contains the number of the used
725 file descriptor as a confirmation.</para>
726 </listitem>
727 </varlistentry>
728
729 <varlistentry><term><option>Run-Directory</option></term>
730 <listitem><para>APT chdirs to this directory before invoking &dpkg;, the default is
731 <filename>/</filename>.</para></listitem>
732 </varlistentry>
733
734 <varlistentry><term><option>Build-options</option></term>
735 <listitem><para>These options are passed to &dpkg-buildpackage; when compiling packages;
736 the default is to disable signing and produce all binaries.</para></listitem>
737 </varlistentry>
738 </variablelist>
739
740 <refsect2><title>dpkg trigger usage (and related options)</title>
741 <para>APT can call &dpkg; in such a way as to let it make aggressive use of triggers over
742 multiple calls of &dpkg;. Without further options &dpkg; will use triggers once each time it runs.
743 Activating these options can therefore decrease the time needed to perform the
744 install or upgrade. Note that it is intended to activate these options per default in the
745 future, but as it drastically changes the way APT calls &dpkg; it needs a lot more testing.
746 <emphasis>These options are therefore currently experimental and should not be used in
747 production environments.</emphasis> It also breaks progress reporting such that all front-ends will
748 currently stay around half (or more) of the time in the 100% state while it actually configures
749 all packages.</para>
750 <para>Note that it is not guaranteed that APT will support these options or that these options will
751 not cause (big) trouble in the future. If you have understand the current risks and problems with
752 these options, but are brave enough to help testing them, create a new configuration file and test a
753 combination of options. Please report any bugs, problems and improvements you encounter and make sure
754 to note which options you have used in your reports. Asking &dpkg; for help could also be useful for
755 debugging proposes, see e.g. <command>dpkg --audit</command>. A defensive option combination would be
756 <literallayout>DPkg::NoTriggers "true";
757 PackageManager::Configure "smart";
758 DPkg::ConfigurePending "true";
759 DPkg::TriggersPending "true";</literallayout></para>
760
761 <variablelist>
762 <varlistentry><term><option>DPkg::NoTriggers</option></term>
763 <listitem><para>Add the no triggers flag to all &dpkg; calls (except the ConfigurePending call).
764 See &dpkg; if you are interested in what this actually means. In short: &dpkg; will not run the
765 triggers when this flag is present unless it is explicitly called to do so in an extra call.
766 Note that this option exists (undocumented) also in older APT versions with a slightly different
767 meaning: Previously these option only append --no-triggers to the configure calls to &dpkg; -
768 now APT will also add this flag to the unpack and remove calls.</para></listitem>
769 </varlistentry>
770 <varlistentry><term><option>PackageManager::Configure</option></term>
771 <listitem><para>Valid values are "<literal>all</literal>",
772 "<literal>smart</literal>" and "<literal>no</literal>".
773 The default value is "<literal>all</literal>", which causes APT to
774 configure all packages. The "<literal>smart</literal>" way is to
775 configure only packages which need to be configured before another
776 package can be unpacked (Pre-Depends), and let the rest be configured
777 by &dpkg; with a call generated by the ConfigurePending option (see
778 below). On the other hand, "<literal>no</literal>" will not configure
779 anything, and totally relies on &dpkg; for configuration (which at the
780 moment will fail if a Pre-Depends is encountered). Setting this option
781 to any value other than <literal>all</literal> will implicitly also
782 activate the next option by default, as otherwise the system could end
783 in an unconfigured and potentially unbootable state.</para></listitem>
784 </varlistentry>
785 <varlistentry><term><option>DPkg::ConfigurePending</option></term>
786 <listitem><para>If this option is set APT will call <command>dpkg --configure --pending</command>
787 to let &dpkg; handle all required configurations and triggers. This option is activated automatically
788 per default if the previous option is not set to <literal>all</literal>, but deactivating it could be useful
789 if you want to run APT multiple times in a row - e.g. in an installer. In these sceneries you could
790 deactivate this option in all but the last run.</para></listitem>
791 </varlistentry>
792 <varlistentry><term><option>DPkg::TriggersPending</option></term>
793 <listitem><para>Useful for the <literal>smart</literal> configuration as a package which has pending
794 triggers is not considered as <literal>installed</literal>, and &dpkg; treats them as <literal>unpacked</literal>
795 currently which is a showstopper for Pre-Dependencies (see debbugs #526774). Note that this will
796 process all triggers, not only the triggers needed to configure this package.</para></listitem>
797 </varlistentry>
798 <varlistentry><term><option>OrderList::Score::Immediate</option></term>
799 <listitem><para>Essential packages (and their dependencies) should be configured immediately
800 after unpacking. It is a good idea to do this quite early in the upgrade process as these
801 configure calls also currently require <literal>DPkg::TriggersPending</literal> which
802 will run quite a few triggers (which may not be needed). Essentials get per default a high score
803 but the immediate flag is relatively low (a package which has a Pre-Depends is rated higher).
804 These option and the others in the same group can be used to change the scoring. The following
805 example shows the settings with their default values.
806 <literallayout>OrderList::Score {
807 Delete 500;
808 Essential 200;
809 Immediate 10;
810 PreDepends 50;
811 };</literallayout>
812 </para></listitem>
813 </varlistentry>
814 </variablelist>
815 </refsect2>
816 </refsect1>
817
818 <refsect1>
819 <title>Periodic and Archives options</title>
820 <para><literal>APT::Periodic</literal> and <literal>APT::Archives</literal>
821 groups of options configure behavior of apt periodic updates, which is
822 done by the <literal>/etc/cron.daily/apt</literal> script. See the top of
823 this script for the brief documentation of these options.
824 </para>
825 </refsect1>
826
827 <refsect1>
828 <title>Debug options</title>
829 <para>
830 Enabling options in the <literal>Debug::</literal> section will
831 cause debugging information to be sent to the standard error
832 stream of the program utilizing the <literal>apt</literal>
833 libraries, or enable special program modes that are primarily
834 useful for debugging the behavior of <literal>apt</literal>.
835 Most of these options are not interesting to a normal user, but a
836 few may be:
837
838 <itemizedlist>
839 <listitem>
840 <para>
841 <literal>Debug::pkgProblemResolver</literal> enables output
842 about the decisions made by
843 <literal>dist-upgrade, upgrade, install, remove, purge</literal>.
844 </para>
845 </listitem>
846
847 <listitem>
848 <para>
849 <literal>Debug::NoLocking</literal> disables all file
850 locking. This can be used to run some operations (for
851 instance, <literal>apt-get -s install</literal>) as a
852 non-root user.
853 </para>
854 </listitem>
855
856 <listitem>
857 <para>
858 <literal>Debug::pkgDPkgPM</literal> prints out the actual
859 command line each time that <literal>apt</literal> invokes
860 &dpkg;.
861 </para>
862 </listitem>
863
864 <listitem>
865 <para>
866 <literal>Debug::IdentCdrom</literal> disables the inclusion
867 of statfs data in CD-ROM IDs. <!-- TODO: provide a
868 motivating example, except I haven't a clue why you'd want
869 to do this. -->
870 </para>
871 </listitem>
872 </itemizedlist>
873 </para>
874
875 <para>
876 A full list of debugging options to apt follows.
877 </para>
878
879 <variablelist>
880 <varlistentry>
881 <term><option>Debug::Acquire::cdrom</option></term>
882
883 <listitem>
884 <para>
885 Print information related to accessing
886 <literal>cdrom://</literal> sources.
887 </para>
888 </listitem>
889 </varlistentry>
890
891 <varlistentry>
892 <term><option>Debug::Acquire::ftp</option></term>
893
894 <listitem>
895 <para>
896 Print information related to downloading packages using
897 FTP.
898 </para>
899 </listitem>
900 </varlistentry>
901
902 <varlistentry>
903 <term><option>Debug::Acquire::http</option></term>
904
905 <listitem>
906 <para>
907 Print information related to downloading packages using
908 HTTP.
909 </para>
910 </listitem>
911 </varlistentry>
912
913 <varlistentry>
914 <term><option>Debug::Acquire::https</option></term>
915
916 <listitem>
917 <para>
918 Print information related to downloading packages using
919 HTTPS.
920 </para>
921 </listitem>
922 </varlistentry>
923
924 <varlistentry>
925 <term><option>Debug::Acquire::gpgv</option></term>
926
927 <listitem>
928 <para>
929 Print information related to verifying cryptographic
930 signatures using <literal>gpg</literal>.
931 </para>
932 </listitem>
933 </varlistentry>
934
935 <varlistentry>
936 <term><option>Debug::aptcdrom</option></term>
937
938 <listitem>
939 <para>
940 Output information about the process of accessing
941 collections of packages stored on CD-ROMs.
942 </para>
943 </listitem>
944 </varlistentry>
945
946 <varlistentry>
947 <term><option>Debug::BuildDeps</option></term>
948 <listitem>
949 <para>
950 Describes the process of resolving build-dependencies in
951 &apt-get;.
952 </para>
953 </listitem>
954 </varlistentry>
955
956 <varlistentry>
957 <term><option>Debug::Hashes</option></term>
958 <listitem>
959 <para>
960 Output each cryptographic hash that is generated by the
961 <literal>apt</literal> libraries.
962 </para>
963 </listitem>
964 </varlistentry>
965
966 <varlistentry>
967 <term><option>Debug::IdentCDROM</option></term>
968 <listitem>
969 <para>
970 Do not include information from <literal>statfs</literal>,
971 namely the number of used and free blocks on the CD-ROM
972 filesystem, when generating an ID for a CD-ROM.
973 </para>
974 </listitem>
975 </varlistentry>
976
977 <varlistentry>
978 <term><option>Debug::NoLocking</option></term>
979 <listitem>
980 <para>
981 Disable all file locking. For instance, this will allow
982 two instances of <quote><literal>apt-get
983 update</literal></quote> to run at the same time.
984 </para>
985 </listitem>
986 </varlistentry>
987
988 <varlistentry>
989 <term><option>Debug::pkgAcquire</option></term>
990
991 <listitem>
992 <para>
993 Log when items are added to or removed from the global
994 download queue.
995 </para>
996 </listitem>
997 </varlistentry>
998
999 <varlistentry>
1000 <term><option>Debug::pkgAcquire::Auth</option></term>
1001 <listitem>
1002 <para>
1003 Output status messages and errors related to verifying
1004 checksums and cryptographic signatures of downloaded files.
1005 </para>
1006 </listitem>
1007 </varlistentry>
1008
1009 <varlistentry>
1010 <term><option>Debug::pkgAcquire::Diffs</option></term>
1011 <listitem>
1012 <para>
1013 Output information about downloading and applying package
1014 index list diffs, and errors relating to package index list
1015 diffs.
1016 </para>
1017 </listitem>
1018 </varlistentry>
1019
1020 <varlistentry>
1021 <term><option>Debug::pkgAcquire::RRed</option></term>
1022
1023 <listitem>
1024 <para>
1025 Output information related to patching apt package lists
1026 when downloading index diffs instead of full indices.
1027 </para>
1028 </listitem>
1029 </varlistentry>
1030
1031 <varlistentry>
1032 <term><option>Debug::pkgAcquire::Worker</option></term>
1033
1034 <listitem>
1035 <para>
1036 Log all interactions with the sub-processes that actually
1037 perform downloads.
1038 </para>
1039 </listitem>
1040 </varlistentry>
1041
1042 <varlistentry>
1043 <term><option>Debug::pkgAutoRemove</option></term>
1044
1045 <listitem>
1046 <para>
1047 Log events related to the automatically-installed status of
1048 packages and to the removal of unused packages.
1049 </para>
1050 </listitem>
1051 </varlistentry>
1052
1053 <varlistentry>
1054 <term><option>Debug::pkgDepCache::AutoInstall</option></term>
1055 <listitem>
1056 <para>
1057 Generate debug messages describing which packages are being
1058 automatically installed to resolve dependencies. This
1059 corresponds to the initial auto-install pass performed in,
1060 e.g., <literal>apt-get install</literal>, and not to the
1061 full <literal>apt</literal> dependency resolver; see
1062 <literal>Debug::pkgProblemResolver</literal> for that.
1063 </para>
1064 </listitem>
1065 </varlistentry>
1066
1067 <varlistentry>
1068 <term><option>Debug::pkgDepCache::Marker</option></term>
1069 <listitem>
1070 <para>
1071 Generate debug messages describing which packages are marked
1072 as keep/install/remove while the ProblemResolver does his work.
1073 Each addition or deletion may trigger additional actions;
1074 they are shown indented two additional spaces under the original entry.
1075 The format for each line is <literal>MarkKeep</literal>,
1076 <literal>MarkDelete</literal> or <literal>MarkInstall</literal> followed by
1077 <literal>package-name &lt;a.b.c -&gt; d.e.f | x.y.z&gt; (section)</literal>
1078 where <literal>a.b.c</literal> is the current version of the package,
1079 <literal>d.e.f</literal> is the version considered for installation and
1080 <literal>x.y.z</literal> is a newer version, but not considered for installation
1081 (because of a low pin score). The later two can be omitted if there is none or if
1082 it is the same as the installed version.
1083 <literal>section</literal> is the name of the section the package appears in.
1084 </para>
1085 </listitem>
1086 </varlistentry>
1087
1088 <varlistentry>
1089 <term><option>Debug::pkgDPkgPM</option></term>
1090 <listitem>
1091 <para>
1092 When invoking &dpkg;, output the precise command line with
1093 which it is being invoked, with arguments separated by a
1094 single space character.
1095 </para>
1096 </listitem>
1097 </varlistentry>
1098
1099 <varlistentry>
1100 <term><option>Debug::pkgDPkgProgressReporting</option></term>
1101 <listitem>
1102 <para>
1103 Output all the data received from &dpkg; on the status file
1104 descriptor and any errors encountered while parsing it.
1105 </para>
1106 </listitem>
1107 </varlistentry>
1108
1109 <varlistentry>
1110 <term><option>Debug::pkgOrderList</option></term>
1111
1112 <listitem>
1113 <para>
1114 Generate a trace of the algorithm that decides the order in
1115 which <literal>apt</literal> should pass packages to
1116 &dpkg;.
1117 </para>
1118 </listitem>
1119 </varlistentry>
1120
1121 <varlistentry>
1122 <term><option>Debug::pkgPackageManager</option></term>
1123
1124 <listitem>
1125 <para>
1126 Output status messages tracing the steps performed when
1127 invoking &dpkg;.
1128 </para>
1129 </listitem>
1130 </varlistentry>
1131
1132 <varlistentry>
1133 <term><option>Debug::pkgPolicy</option></term>
1134
1135 <listitem>
1136 <para>
1137 Output the priority of each package list on startup.
1138 </para>
1139 </listitem>
1140 </varlistentry>
1141
1142 <varlistentry>
1143 <term><option>Debug::pkgProblemResolver</option></term>
1144
1145 <listitem>
1146 <para>
1147 Trace the execution of the dependency resolver (this
1148 applies only to what happens when a complex dependency
1149 problem is encountered).
1150 </para>
1151 </listitem>
1152 </varlistentry>
1153
1154 <varlistentry>
1155 <term><option>Debug::pkgProblemResolver::ShowScores</option></term>
1156 <listitem>
1157 <para>
1158 Display a list of all installed packages with their calculated score
1159 used by the pkgProblemResolver. The description of the package
1160 is the same as described in <literal>Debug::pkgDepCache::Marker</literal>
1161 </para>
1162 </listitem>
1163 </varlistentry>
1164
1165 <varlistentry>
1166 <term><option>Debug::sourceList</option></term>
1167
1168 <listitem>
1169 <para>
1170 Print information about the vendors read from
1171 <filename>/etc/apt/vendors.list</filename>.
1172 </para>
1173 </listitem>
1174 </varlistentry>
1175
1176 <!-- 2009/07/11 Currently used nowhere. The corresponding code
1177 is commented.
1178 <varlistentry>
1179 <term><literal>Debug::Vendor</literal></term>
1180
1181 <listitem>
1182 <para>
1183 Print information about each vendor.
1184 </para>
1185 </listitem>
1186 </varlistentry>
1187 -->
1188
1189 </variablelist>
1190 </refsect1>
1191
1192 <refsect1><title>Examples</title>
1193 <para>&configureindex; is a
1194 configuration file showing example values for all possible
1195 options.</para>
1196 </refsect1>
1197
1198 <refsect1><title>Files</title>
1199 <variablelist>
1200 &file-aptconf;
1201 </variablelist>
1202 </refsect1>
1203
1204 <refsect1><title>See Also</title>
1205 <para>&apt-cache;, &apt-config;<!-- ? reading apt.conf -->, &apt-preferences;.</para>
1206 </refsect1>
1207
1208 &manbugs;
1209
1210 </refentry>
1211