]>
Commit | Line | Data |
---|---|---|
24f6490f AL |
1 | <?xml version="1.0" encoding="utf-8" standalone="no"?> |
2 | <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" | |
3 | "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ | |
4 | ||
5 | <!ENTITY % aptent SYSTEM "apt.ent"> | |
6 | %aptent; | |
7 | ||
8 | ]> | |
9 | ||
10 | <refentry> | |
5e80de29 AL |
11 | |
12 | <refentryinfo> | |
13 | &apt-author.jgunthorpe; | |
14 | &apt-author.team; | |
be1b8568 EL |
15 | <author> |
16 | <firstname>Daniel</firstname> | |
17 | <surname>Burrows</surname> | |
18 | <contrib>Initial documentation of Debug::*.</contrib> | |
19 | <email>dburrows@debian.org</email> | |
20 | </author> | |
5e80de29 AL |
21 | &apt-email; |
22 | &apt-product; | |
23 | <!-- The last update date --> | |
d5081aee | 24 | <date>18 September 2009</date> |
5e80de29 | 25 | </refentryinfo> |
24f6490f AL |
26 | |
27 | <refmeta> | |
28 | <refentrytitle>apt.conf</refentrytitle> | |
29 | <manvolnum>5</manvolnum> | |
f0599b9c | 30 | <refmiscinfo class="manual">APT</refmiscinfo> |
24f6490f AL |
31 | </refmeta> |
32 | ||
33 | <!-- Man page title --> | |
34 | <refnamediv> | |
35 | <refname>apt.conf</refname> | |
36 | <refpurpose>Configuration file for APT</refpurpose> | |
37 | </refnamediv> | |
38 | ||
39 | <refsect1><title>Description</title> | |
40 | <para><filename>apt.conf</filename> is the main configuration file for the APT suite of | |
41 | tools, all tools make use of the configuration file and a common command line | |
42 | parser to provide a uniform environment. When an APT tool starts up it will | |
43 | read the configuration specified by the <envar>APT_CONFIG</envar> environment | |
44 | variable (if any) and then read the files in <literal>Dir::Etc::Parts</literal> | |
45 | then read the main configuration file specified by | |
46 | <literal>Dir::Etc::main</literal> then finally apply the | |
47 | command line options to override the configuration directives, possibly | |
48 | loading even more config files.</para> | |
49 | ||
50 | <para>The configuration file is organized in a tree with options organized into | |
5f4331c4 | 51 | functional groups. Option specification is given with a double colon |
24f6490f | 52 | notation, for instance <literal>APT::Get::Assume-Yes</literal> is an option within |
5f4331c4 | 53 | the APT tool group, for the Get tool. Options do not inherit from their |
24f6490f AL |
54 | parent groups.</para> |
55 | ||
e3a1f08d | 56 | <para>Syntactically the configuration language is modeled after what the ISC tools |
7f1bc985 EL |
57 | such as bind and dhcp use. Lines starting with |
58 | <literal>//</literal> are treated as comments (ignored), as well as all text | |
59 | between <literal>/*</literal> and <literal>*/</literal>, just like C/C++ comments. | |
24f6490f | 60 | Each line is of the form |
5f4331c4 | 61 | <literal>APT::Get::Assume-Yes "true";</literal>. The trailing |
52f2e1da JAK |
62 | semicolon and the quotes are required. The value must be on one line, and |
63 | there is no kind of string concatenation. It must not include inside quotes. | |
64 | The behavior of the backslash "\" and escaped characters inside a value is | |
31f113db JAK |
65 | undefined and it should not be used. An option name may include |
66 | alphanumerical characters and the "/-:._+" characters. A new scope can | |
67 | be opened with curly braces, like:</para> | |
24f6490f AL |
68 | |
69 | <informalexample><programlisting> | |
70 | APT { | |
71 | Get { | |
72 | Assume-Yes "true"; | |
73 | Fix-Broken "true"; | |
74 | }; | |
75 | }; | |
76 | </programlisting></informalexample> | |
77 | ||
78 | <para>with newlines placed to make it more readable. Lists can be created by | |
d82cdf73 | 79 | opening a scope and including a single string enclosed in quotes followed by a |
24f6490f AL |
80 | semicolon. Multiple entries can be included, each separated by a semicolon.</para> |
81 | ||
82 | <informalexample><programlisting> | |
83 | DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";}; | |
84 | </programlisting></informalexample> | |
85 | ||
86 | <para>In general the sample configuration file in | |
87 | <filename>&docdir;examples/apt.conf</filename> &configureindex; | |
88 | is a good guide for how it should look.</para> | |
89 | ||
fb3b7ef0 LB |
90 | <para>The names of the configuration items are not case-sensitive. So in the previous example |
91 | you could use <literal>dpkg::pre-install-pkgs</literal>.</para> | |
92 | ||
63fc5550 DK |
93 | <para>Names for the configuration items are optional if a list is defined as it can be see in |
94 | the <literal>DPkg::Pre-Install-Pkgs</literal> example above. If you don't specify a name a | |
95 | new entry will simply add a new option to the list. If you specify a name you can override | |
96 | the option as every other option by reassigning a new value to the option.</para> | |
97 | ||
334459ab JAK |
98 | <para>Two specials are allowed, <literal>#include</literal> (which is deprecated |
99 | and not supported by alternative implementations) and <literal>#clear</literal>: | |
24f6490f AL |
100 | <literal>#include</literal> will include the given file, unless the filename |
101 | ends in a slash, then the whole directory is included. | |
d82cdf73 | 102 | <literal>#clear</literal> is used to erase a part of the configuration tree. The |
63fc5550 DK |
103 | specified element and all its descendants are erased. |
104 | (Note that these lines also need to end with a semicolon.)</para> | |
105 | ||
106 | <para>The #clear command is the only way to delete a list or a complete scope. | |
107 | Reopening a scope or the ::-style described below will <emphasis>not</emphasis> | |
a9564741 | 108 | override previously written entries. Only options can be overridden by addressing a new |
63fc5550 | 109 | value to it - lists and scopes can't be overridden, only cleared.</para> |
24f6490f AL |
110 | |
111 | <para>All of the APT tools take a -o option which allows an arbitrary configuration | |
112 | directive to be specified on the command line. The syntax is a full option | |
113 | name (<literal>APT::Get::Assume-Yes</literal> for instance) followed by an equals | |
114 | sign then the new value of the option. Lists can be appended too by adding | |
63fc5550 | 115 | a trailing :: to the list name. (As you might suspect: The scope syntax can't be used |
a9564741 | 116 | on the command line.)</para> |
63fc5550 DK |
117 | |
118 | <para>Note that you can use :: only for appending one item per line to a list and | |
119 | that you should not use it in combination with the scope syntax. | |
120 | (The scope syntax implicit insert ::) Using both syntaxes together will trigger a bug | |
121 | which some users unfortunately relay on: An option with the unusual name "<literal>::</literal>" | |
122 | which acts like every other option with a name. These introduces many problems | |
123 | including that a user who writes multiple lines in this <emphasis>wrong</emphasis> syntax in | |
124 | the hope to append to a list will gain the opposite as only the last assignment for this option | |
125 | "<literal>::</literal>" will be used. Upcoming APT versions will raise errors and | |
126 | will stop working if they encounter this misuse, so please correct such statements now | |
127 | as long as APT doesn't complain explicit about them.</para> | |
24f6490f AL |
128 | </refsect1> |
129 | ||
130 | <refsect1><title>The APT Group</title> | |
131 | <para>This group of options controls general APT behavior as well as holding the | |
132 | options for all of the tools.</para> | |
133 | ||
134 | <variablelist> | |
135 | <varlistentry><term>Architecture</term> | |
136 | <listitem><para>System Architecture; sets the architecture to use when fetching files and | |
137 | parsing package lists. The internal default is the architecture apt was | |
138 | compiled for.</para></listitem> | |
139 | </varlistentry> | |
140 | ||
60a8f9c0 EL |
141 | <varlistentry><term>Default-Release</term> |
142 | <listitem><para>Default release to install packages from if more than one | |
efc487fb | 143 | version available. Contains release name, codename or release version. Examples: 'stable', 'testing', 'unstable', 'lenny', 'squeeze', '4.0', '5.0*'. See also &apt-preferences;.</para></listitem> |
60a8f9c0 EL |
144 | </varlistentry> |
145 | ||
24f6490f AL |
146 | <varlistentry><term>Ignore-Hold</term> |
147 | <listitem><para>Ignore Held packages; This global option causes the problem resolver to | |
148 | ignore held packages in its decision making.</para></listitem> | |
149 | </varlistentry> | |
150 | ||
151 | <varlistentry><term>Clean-Installed</term> | |
152 | <listitem><para>Defaults to on. When turned on the autoclean feature will remove any packages | |
153 | which can no longer be downloaded from the cache. If turned off then | |
154 | packages that are locally installed are also excluded from cleaning - but | |
155 | note that APT provides no direct means to reinstall them.</para></listitem> | |
156 | </varlistentry> | |
157 | ||
158 | <varlistentry><term>Immediate-Configure</term> | |
f66a64c2 DK |
159 | <listitem><para>Defaults to on which will cause APT to install essential and important packages |
160 | as fast as possible in the install/upgrade operation. This is done to limit the effect of a failing | |
20382bad | 161 | &dpkg; call: If this option is disabled APT does treat an important package in the same way as |
f66a64c2 DK |
162 | an extra package: Between the unpacking of the important package A and his configuration can then |
163 | be many other unpack or configuration calls, e.g. for package B which has no relation to A, but | |
164 | causes the dpkg call to fail (e.g. because maintainer script of package B generates an error) which results | |
165 | in a system state in which package A is unpacked but unconfigured - each package depending on A is now no | |
166 | longer guaranteed to work as their dependency on A is not longer satisfied. The immediate configuration marker | |
167 | is also applied to all dependencies which can generate a problem if the dependencies e.g. form a circle | |
168 | as a dependency with the immediate flag is comparable with a Pre-Dependency. So in theory it is possible | |
169 | that APT encounters a situation in which it is unable to perform immediate configuration, error out and | |
170 | refers to this option so the user can deactivate the immediate configuration temporary to be able to perform | |
171 | an install/upgrade again. Note the use of the word "theory" here as this problem was only encountered by now | |
172 | in real world a few times in non-stable distribution versions and caused by wrong dependencies of the package | |
20382bad DK |
173 | in question or by a system in an already broken state, so you should not blindly disable this option as |
174 | the mentioned scenario above is not the only problem immediate configuration can help to prevent in the first place. | |
175 | Before a big operation like <literal>dist-upgrade</literal> is run with this option disabled it should be tried to | |
176 | explicitly <literal>install</literal> the package APT is unable to configure immediately, but please make sure to | |
177 | report your problem also to your distribution and to the APT team with the buglink below so they can work on | |
178 | improving or correcting the upgrade process.</para></listitem> | |
24f6490f AL |
179 | </varlistentry> |
180 | ||
181 | <varlistentry><term>Force-LoopBreak</term> | |
182 | <listitem><para>Never Enable this option unless you -really- know what you are doing. It | |
183 | permits APT to temporarily remove an essential package to break a | |
184 | Conflicts/Conflicts or Conflicts/Pre-Depend loop between two essential | |
185 | packages. SUCH A LOOP SHOULD NEVER EXIST AND IS A GRAVE BUG. This option | |
186 | will work if the essential packages are not tar, gzip, libc, dpkg, bash or | |
187 | anything that those packages depend on.</para></listitem> | |
188 | </varlistentry> | |
189 | ||
190 | <varlistentry><term>Cache-Limit</term> | |
191 | <listitem><para>APT uses a fixed size memory mapped cache file to store the 'available' | |
a04c23d7 | 192 | information. This sets the size of that cache (in bytes).</para></listitem> |
24f6490f AL |
193 | </varlistentry> |
194 | ||
195 | <varlistentry><term>Build-Essential</term> | |
196 | <listitem><para>Defines which package(s) are considered essential build dependencies.</para></listitem> | |
197 | </varlistentry> | |
198 | ||
199 | <varlistentry><term>Get</term> | |
200 | <listitem><para>The Get subsection controls the &apt-get; tool, please see its | |
201 | documentation for more information about the options here.</para></listitem> | |
202 | </varlistentry> | |
203 | ||
204 | <varlistentry><term>Cache</term> | |
205 | <listitem><para>The Cache subsection controls the &apt-cache; tool, please see its | |
206 | documentation for more information about the options here.</para></listitem> | |
207 | </varlistentry> | |
208 | ||
209 | <varlistentry><term>CDROM</term> | |
210 | <listitem><para>The CDROM subsection controls the &apt-cdrom; tool, please see its | |
211 | documentation for more information about the options here.</para></listitem> | |
212 | </varlistentry> | |
213 | </variablelist> | |
214 | </refsect1> | |
215 | ||
216 | <refsect1><title>The Acquire Group</title> | |
217 | <para>The <literal>Acquire</literal> group of options controls the download of packages | |
218 | and the URI handlers. | |
219 | ||
220 | <variablelist> | |
0d70b055 | 221 | <varlistentry><term>PDiffs</term> |
d82cdf73 | 222 | <listitem><para>Try to download deltas called <literal>PDiffs</literal> for |
0d70b055 EL |
223 | Packages or Sources files instead of downloading whole ones. True |
224 | by default.</para></listitem> | |
225 | </varlistentry> | |
226 | ||
24f6490f AL |
227 | <varlistentry><term>Queue-Mode</term> |
228 | <listitem><para>Queuing mode; <literal>Queue-Mode</literal> can be one of <literal>host</literal> or | |
229 | <literal>access</literal> which determines how APT parallelizes outgoing | |
230 | connections. <literal>host</literal> means that one connection per target host | |
231 | will be opened, <literal>access</literal> means that one connection per URI type | |
232 | will be opened.</para></listitem> | |
233 | </varlistentry> | |
234 | ||
235 | <varlistentry><term>Retries</term> | |
236 | <listitem><para>Number of retries to perform. If this is non-zero APT will retry failed | |
237 | files the given number of times.</para></listitem> | |
238 | </varlistentry> | |
239 | ||
240 | <varlistentry><term>Source-Symlinks</term> | |
241 | <listitem><para>Use symlinks for source archives. If set to true then source archives will | |
242 | be symlinked when possible instead of copying. True is the default.</para></listitem> | |
243 | </varlistentry> | |
244 | ||
245 | <varlistentry><term>http</term> | |
246 | <listitem><para>HTTP URIs; http::Proxy is the default http proxy to use. It is in the | |
247 | standard form of <literal>http://[[user][:pass]@]host[:port]/</literal>. Per | |
248 | host proxies can also be specified by using the form | |
249 | <literal>http::Proxy::<host></literal> with the special keyword <literal>DIRECT</literal> | |
788a8f42 EL |
250 | meaning to use no proxies. If no one of the above settings is specified, |
251 | <envar>http_proxy</envar> environment variable | |
252 | will be used.</para> | |
24f6490f AL |
253 | |
254 | <para>Three settings are provided for cache control with HTTP/1.1 compliant | |
255 | proxy caches. <literal>No-Cache</literal> tells the proxy to not use its cached | |
256 | response under any circumstances, <literal>Max-Age</literal> is sent only for | |
257 | index files and tells the cache to refresh its object if it is older than | |
258 | the given number of seconds. Debian updates its index files daily so the | |
259 | default is 1 day. <literal>No-Store</literal> specifies that the cache should never | |
260 | store this request, it is only set for archive files. This may be useful | |
261 | to prevent polluting a proxy cache with very large .deb files. Note: | |
262 | Squid 2.0.2 does not support any of these options.</para> | |
263 | ||
264 | <para>The option <literal>timeout</literal> sets the timeout timer used by the method, | |
265 | this applies to all things including connection timeout and data timeout.</para> | |
266 | ||
267 | <para>One setting is provided to control the pipeline depth in cases where the | |
5f4331c4 | 268 | remote server is not RFC conforming or buggy (such as Squid 2.0.2). |
24f6490f AL |
269 | <literal>Acquire::http::Pipeline-Depth</literal> can be a value from 0 to 5 |
270 | indicating how many outstanding requests APT should send. A value of | |
271 | zero MUST be specified if the remote host does not properly linger | |
272 | on TCP connections - otherwise data corruption will occur. Hosts which | |
5900bd8d DK |
273 | require this are in violation of RFC 2068.</para> |
274 | ||
275 | <para>The used bandwidth can be limited with <literal>Acquire::http::Dl-Limit</literal> | |
276 | which accepts integer values in kilobyte. The default value is 0 which deactivates | |
a9564741 | 277 | the limit and tries uses as much as possible of the bandwidth (Note that this option implicit |
5900bd8d | 278 | deactivates the download from multiple servers at the same time.)</para></listitem> |
24f6490f AL |
279 | </varlistentry> |
280 | ||
370ad5e1 EL |
281 | <varlistentry><term>https</term> |
282 | <listitem><para>HTTPS URIs. Cache-control and proxy options are the same as for | |
283 | <literal>http</literal> method. | |
284 | <literal>Pipeline-Depth</literal> option is not supported yet.</para> | |
285 | ||
286 | <para><literal>CaInfo</literal> suboption specifies place of file that | |
287 | holds info about trusted certificates. | |
288 | <literal><host>::CaInfo</literal> is corresponding per-host option. | |
289 | <literal>Verify-Peer</literal> boolean suboption determines whether verify | |
290 | server's host certificate against trusted certificates or not. | |
291 | <literal><host>::Verify-Peer</literal> is corresponding per-host option. | |
292 | <literal>Verify-Host</literal> boolean suboption determines whether verify | |
293 | server's hostname or not. | |
294 | <literal><host>::Verify-Host</literal> is corresponding per-host option. | |
295 | <literal>SslCert</literal> determines what certificate to use for client | |
296 | authentication. <literal><host>::SslCert</literal> is corresponding per-host option. | |
297 | <literal>SslKey</literal> determines what private key to use for client | |
298 | authentication. <literal><host>::SslKey</literal> is corresponding per-host option. | |
299 | <literal>SslForceVersion</literal> overrides default SSL version to use. | |
300 | Can contain 'TLSv1' or 'SSLv3' string. | |
301 | <literal><host>::SslForceVersion</literal> is corresponding per-host option. | |
302 | </para></listitem></varlistentry> | |
303 | ||
24f6490f | 304 | <varlistentry><term>ftp</term> |
788a8f42 EL |
305 | <listitem><para>FTP URIs; ftp::Proxy is the default ftp proxy to use. It is in the |
306 | standard form of <literal>ftp://[[user][:pass]@]host[:port]/</literal>. Per | |
307 | host proxies can also be specified by using the form | |
308 | <literal>ftp::Proxy::<host></literal> with the special keyword <literal>DIRECT</literal> | |
309 | meaning to use no proxies. If no one of the above settings is specified, | |
310 | <envar>ftp_proxy</envar> environment variable | |
311 | will be used. To use a ftp | |
24f6490f AL |
312 | proxy you will have to set the <literal>ftp::ProxyLogin</literal> script in the |
313 | configuration file. This entry specifies the commands to send to tell | |
314 | the proxy server what to connect to. Please see | |
315 | &configureindex; for an example of | |
e3a1f08d | 316 | how to do this. The substitution variables available are |
24f6490f AL |
317 | <literal>$(PROXY_USER)</literal> <literal>$(PROXY_PASS)</literal> <literal>$(SITE_USER)</literal> |
318 | <literal>$(SITE_PASS)</literal> <literal>$(SITE)</literal> and <literal>$(SITE_PORT)</literal> | |
319 | Each is taken from it's respective URI component.</para> | |
320 | ||
321 | <para>The option <literal>timeout</literal> sets the timeout timer used by the method, | |
322 | this applies to all things including connection timeout and data timeout.</para> | |
323 | ||
324 | <para>Several settings are provided to control passive mode. Generally it is | |
325 | safe to leave passive mode on, it works in nearly every environment. | |
326 | However some situations require that passive mode be disabled and port | |
327 | mode ftp used instead. This can be done globally, for connections that | |
328 | go through a proxy or for a specific host (See the sample config file | |
329 | for examples).</para> | |
330 | ||
331 | <para>It is possible to proxy FTP over HTTP by setting the <envar>ftp_proxy</envar> | |
332 | environment variable to a http url - see the discussion of the http method | |
333 | above for syntax. You cannot set this in the configuration file and it is | |
334 | not recommended to use FTP over HTTP due to its low efficiency.</para> | |
335 | ||
336 | <para>The setting <literal>ForceExtended</literal> controls the use of RFC2428 | |
e3a1f08d | 337 | <literal>EPSV</literal> and <literal>EPRT</literal> commands. The default is false, which means |
24f6490f AL |
338 | these commands are only used if the control connection is IPv6. Setting this |
339 | to true forces their use even on IPv4 connections. Note that most FTP servers | |
340 | do not support RFC2428.</para></listitem> | |
341 | </varlistentry> | |
342 | ||
343 | <varlistentry><term>cdrom</term> | |
344 | <listitem><para>CDROM URIs; the only setting for CDROM URIs is the mount point, | |
345 | <literal>cdrom::Mount</literal> which must be the mount point for the CDROM drive | |
346 | as specified in <filename>/etc/fstab</filename>. It is possible to provide | |
347 | alternate mount and unmount commands if your mount point cannot be listed | |
348 | in the fstab (such as an SMB mount and old mount packages). The syntax | |
31f113db | 349 | is to put <literallayout>/cdrom/::Mount "foo";</literallayout> within |
24f6490f AL |
350 | the cdrom block. It is important to have the trailing slash. Unmount |
351 | commands can be specified using UMount.</para></listitem> | |
352 | </varlistentry> | |
8a3642bd MV |
353 | |
354 | <varlistentry><term>gpgv</term> | |
355 | <listitem><para>GPGV URIs; the only option for GPGV URIs is the option to pass additional parameters to gpgv. | |
356 | <literal>gpgv::Options</literal> Additional options passed to gpgv. | |
357 | </para></listitem> | |
358 | </varlistentry> | |
359 | ||
e85b4cd5 DK |
360 | <varlistentry><term>CompressionTypes</term> |
361 | <listitem><para>List of compression types which are understood by the acquire methods. | |
362 | Files like <filename>Packages</filename> can be available in various compression formats. | |
8bd02d8b DK |
363 | Per default the acquire methods can decompress <command>bzip2</command>, <command>lzma</command> |
364 | and <command>gzip</command> compressed files, with this setting more formats can be added | |
365 | on the fly or the used method can be changed. The syntax for this is: | |
e85b4cd5 | 366 | <synopsis>Acquire::CompressionTypes::<replaceable>FileExtension</replaceable> "<replaceable>Methodname</replaceable>";</synopsis> |
8bd02d8b DK |
367 | </para><para>Also the <literal>Order</literal> subgroup can be used to define in which order |
368 | the acquire system will try to download the compressed files. The acquire system will try the first | |
369 | and proceed with the next compression type in this list on error, so to prefer one over the other type | |
370 | simple add the preferred type at first - not already added default types will be added at run time | |
371 | to the end of the list, so e.g. <synopsis>Acquire::CompressionTypes::Order:: "gz";</synopsis> can | |
372 | be used to prefer <command>gzip</command> compressed files over <command>bzip2</command> and <command>lzma</command>. | |
373 | If <command>lzma</command> should be preferred over <command>gzip</command> and <command>bzip2</command> the | |
374 | configure setting should look like this <synopsis>Acquire::CompressionTypes::Order { "lzma"; "gz"; };</synopsis> | |
375 | It is not needed to add <literal>bz2</literal> explicit to the list as it will be added automatic.</para> | |
376 | <para>Note that at run time the <literal>Dir::Bin::<replaceable>Methodname</replaceable></literal> will | |
e85b4cd5 | 377 | be checked: If this setting exists the method will only be used if this file exists, e.g. for |
8bd02d8b | 378 | the bzip2 method (the inbuilt) setting is <literallayout>Dir::Bin::bzip2 "/bin/bzip2";</literallayout> |
a9564741 | 379 | Note also that list entries specified on the command line will be added at the end of the list |
8bd02d8b DK |
380 | specified in the configuration files, but before the default entries. To prefer a type in this case |
381 | over the ones specified in in the configuration files you can set the option direct - not in list style. | |
382 | This will not override the defined list, it will only prefix the list with this type.</para> | |
383 | <para>While it is possible to add an empty compression type to the order list, but APT in its current | |
384 | version doesn't understand it correctly and will display many warnings about not downloaded files - | |
385 | these warnings are most of the time false negatives. Future versions will maybe include a way to | |
386 | really prefer uncompressed files to support the usage of local mirrors.</para></listitem> | |
e85b4cd5 | 387 | </varlistentry> |
24f6490f AL |
388 | </variablelist> |
389 | </para> | |
390 | </refsect1> | |
391 | ||
392 | <refsect1><title>Directories</title> | |
393 | ||
394 | <para>The <literal>Dir::State</literal> section has directories that pertain to local | |
395 | state information. <literal>lists</literal> is the directory to place downloaded | |
396 | package lists in and <literal>status</literal> is the name of the dpkg status file. | |
397 | <literal>preferences</literal> is the name of the APT preferences file. | |
398 | <literal>Dir::State</literal> contains the default directory to prefix on all sub | |
399 | items if they do not start with <filename>/</filename> or <filename>./</filename>.</para> | |
400 | ||
401 | <para><literal>Dir::Cache</literal> contains locations pertaining to local cache | |
402 | information, such as the two package caches <literal>srcpkgcache</literal> and | |
403 | <literal>pkgcache</literal> as well as the location to place downloaded archives, | |
404 | <literal>Dir::Cache::archives</literal>. Generation of caches can be turned off | |
405 | by setting their names to be blank. This will slow down startup but | |
e3a1f08d | 406 | save disk space. It is probably preferred to turn off the pkgcache rather |
24f6490f AL |
407 | than the srcpkgcache. Like <literal>Dir::State</literal> the default |
408 | directory is contained in <literal>Dir::Cache</literal></para> | |
409 | ||
410 | <para><literal>Dir::Etc</literal> contains the location of configuration files, | |
411 | <literal>sourcelist</literal> gives the location of the sourcelist and | |
412 | <literal>main</literal> is the default configuration file (setting has no effect, | |
413 | unless it is done from the config file specified by | |
13e8426f | 414 | <envar>APT_CONFIG</envar>).</para> |
24f6490f AL |
415 | |
416 | <para>The <literal>Dir::Parts</literal> setting reads in all the config fragments in | |
417 | lexical order from the directory specified. After this is done then the | |
418 | main config file is loaded.</para> | |
419 | ||
420 | <para>Binary programs are pointed to by <literal>Dir::Bin</literal>. <literal>Dir::Bin::Methods</literal> | |
421 | specifies the location of the method handlers and <literal>gzip</literal>, | |
e85b4cd5 | 422 | <literal>bzip2</literal>, <literal>lzma</literal>, |
24f6490f AL |
423 | <literal>dpkg</literal>, <literal>apt-get</literal> <literal>dpkg-source</literal> |
424 | <literal>dpkg-buildpackage</literal> and <literal>apt-cache</literal> specify the location | |
425 | of the respective programs.</para> | |
db2cca11 OS |
426 | |
427 | <para> | |
428 | The configuration item <literal>RootDir</literal> has a special | |
429 | meaning. If set, all paths in <literal>Dir::</literal> will be | |
430 | relative to <literal>RootDir</literal>, <emphasis>even paths that | |
431 | are specified absolutely</emphasis>. So, for instance, if | |
432 | <literal>RootDir</literal> is set to | |
433 | <filename>/tmp/staging</filename> and | |
434 | <literal>Dir::State::status</literal> is set to | |
435 | <filename>/var/lib/dpkg/status</filename>, then the status file | |
436 | will be looked up in | |
437 | <filename>/tmp/staging/var/lib/dpkg/status</filename>. | |
438 | </para> | |
24f6490f AL |
439 | </refsect1> |
440 | ||
441 | <refsect1><title>APT in DSelect</title> | |
442 | <para> | |
443 | When APT is used as a &dselect; method several configuration directives | |
444 | control the default behaviour. These are in the <literal>DSelect</literal> section.</para> | |
445 | ||
446 | <variablelist> | |
447 | <varlistentry><term>Clean</term> | |
448 | <listitem><para>Cache Clean mode; this value may be one of always, prompt, auto, | |
449 | pre-auto and never. always and prompt will remove all packages from | |
450 | the cache after upgrading, prompt (the default) does so conditionally. | |
451 | auto removes only those packages which are no longer downloadable | |
452 | (replaced with a new version for instance). pre-auto performs this | |
453 | action before downloading new packages.</para></listitem> | |
454 | </varlistentry> | |
455 | ||
456 | <varlistentry><term>options</term> | |
457 | <listitem><para>The contents of this variable is passed to &apt-get; as command line | |
458 | options when it is run for the install phase.</para></listitem> | |
459 | </varlistentry> | |
460 | ||
461 | <varlistentry><term>Updateoptions</term> | |
462 | <listitem><para>The contents of this variable is passed to &apt-get; as command line | |
463 | options when it is run for the update phase.</para></listitem> | |
464 | </varlistentry> | |
465 | ||
466 | <varlistentry><term>PromptAfterUpdate</term> | |
467 | <listitem><para>If true the [U]pdate operation in &dselect; will always prompt to continue. | |
468 | The default is to prompt only on error.</para></listitem> | |
469 | </varlistentry> | |
470 | </variablelist> | |
471 | </refsect1> | |
472 | ||
473 | <refsect1><title>How APT calls dpkg</title> | |
474 | <para>Several configuration directives control how APT invokes &dpkg;. These are | |
475 | in the <literal>DPkg</literal> section.</para> | |
476 | ||
477 | <variablelist> | |
478 | <varlistentry><term>options</term> | |
479 | <listitem><para>This is a list of options to pass to dpkg. The options must be specified | |
480 | using the list notation and each list item is passed as a single argument | |
481 | to &dpkg;.</para></listitem> | |
482 | </varlistentry> | |
483 | ||
484 | <varlistentry><term>Pre-Invoke</term><term>Post-Invoke</term> | |
485 | <listitem><para>This is a list of shell commands to run before/after invoking &dpkg;. | |
486 | Like <literal>options</literal> this must be specified in list notation. The | |
487 | commands are invoked in order using <filename>/bin/sh</filename>, should any | |
488 | fail APT will abort.</para></listitem> | |
489 | </varlistentry> | |
490 | ||
491 | <varlistentry><term>Pre-Install-Pkgs</term> | |
492 | <listitem><para>This is a list of shell commands to run before invoking dpkg. Like | |
493 | <literal>options</literal> this must be specified in list notation. The commands | |
494 | are invoked in order using <filename>/bin/sh</filename>, should any fail APT | |
495 | will abort. APT will pass to the commands on standard input the | |
496 | filenames of all .deb files it is going to install, one per line.</para> | |
497 | ||
498 | <para>Version 2 of this protocol dumps more information, including the | |
499 | protocol version, the APT configuration space and the packages, files | |
500 | and versions being changed. Version 2 is enabled by setting | |
501 | <literal>DPkg::Tools::options::cmd::Version</literal> to 2. <literal>cmd</literal> is a | |
502 | command given to <literal>Pre-Install-Pkgs</literal>.</para></listitem> | |
503 | </varlistentry> | |
504 | ||
505 | <varlistentry><term>Run-Directory</term> | |
506 | <listitem><para>APT chdirs to this directory before invoking dpkg, the default is | |
507 | <filename>/</filename>.</para></listitem> | |
508 | </varlistentry> | |
509 | ||
510 | <varlistentry><term>Build-options</term> | |
511 | <listitem><para>These options are passed to &dpkg-buildpackage; when compiling packages, | |
512 | the default is to disable signing and produce all binaries.</para></listitem> | |
513 | </varlistentry> | |
514 | </variablelist> | |
3e9c4f70 | 515 | |
5e312de7 | 516 | <refsect2><title>dpkg trigger usage (and related options)</title> |
3e9c4f70 DK |
517 | <para>APT can call dpkg in a way so it can make aggressive use of triggers over |
518 | multiply calls of dpkg. Without further options dpkg will use triggers only in between his | |
5e312de7 | 519 | own run. Activating these options can therefore decrease the time needed to perform the |
3e9c4f70 | 520 | install / upgrade. Note that it is intended to activate these options per default in the |
a9564741 | 521 | future, but as it changes the way APT calling dpkg drastically it needs a lot more testing. |
3e9c4f70 DK |
522 | <emphasis>These options are therefore currently experimental and should not be used in |
523 | productive environments.</emphasis> Also it breaks the progress reporting so all frontends will | |
524 | currently stay around half (or more) of the time in the 100% state while it actually configures | |
525 | all packages.</para> | |
a9564741 | 526 | <para>Note that it is not guaranteed that APT will support these options or that these options will |
5e312de7 DK |
527 | not cause (big) trouble in the future. If you have understand the current risks and problems with |
528 | these options, but are brave enough to help testing them create a new configuration file and test a | |
529 | combination of options. Please report any bugs, problems and improvements you encounter and make sure | |
530 | to note which options you have used in your reports. Asking dpkg for help could also be useful for | |
531 | debugging proposes, see e.g. <command>dpkg --audit</command>. A defensive option combination would be | |
3e9c4f70 | 532 | <literallayout>DPkg::NoTriggers "true"; |
5e312de7 DK |
533 | PackageManager::Configure "smart"; |
534 | DPkg::ConfigurePending "true"; | |
d5081aee | 535 | DPkg::TriggersPending "true";</literallayout></para> |
3e9c4f70 DK |
536 | |
537 | <variablelist> | |
5e312de7 | 538 | <varlistentry><term>DPkg::NoTriggers</term> |
5f4331c4 | 539 | <listitem><para>Add the no triggers flag to all dpkg calls (except the ConfigurePending call). |
3e9c4f70 | 540 | See &dpkg; if you are interested in what this actually means. In short: dpkg will not run the |
5f4331c4 | 541 | triggers when this flag is present unless it is explicitly called to do so in an extra call. |
3e9c4f70 DK |
542 | Note that this option exists (undocumented) also in older apt versions with a slightly different |
543 | meaning: Previously these option only append --no-triggers to the configure calls to dpkg - | |
544 | now apt will add these flag also to the unpack and remove calls.</para></listitem> | |
545 | </varlistentry> | |
5e312de7 DK |
546 | <varlistentry><term>PackageManager::Configure</term> |
547 | <listitem><para>Valid values are "<literal>all</literal>", "<literal>smart</literal>" and "<literal>no</literal>". | |
548 | "<literal>all</literal>" is the default value and causes APT to configure all packages explicit. | |
549 | The "<literal>smart</literal>" way is it to configure only packages which need to be configured before | |
550 | another package can be unpacked (Pre-Depends) and let the rest configure by dpkg with a call generated | |
551 | by the next option. "<literal>no</literal>" on the other hand will not configure anything and totally | |
5f4331c4 DK |
552 | rely on dpkg for configuration (which will at the moment fail if a Pre-Depends is encountered). |
553 | Setting this option to another than the all value will implicitly activate also the next option per | |
3e9c4f70 DK |
554 | default as otherwise the system could end in an unconfigured status which could be unbootable! |
555 | </para></listitem> | |
556 | </varlistentry> | |
5e312de7 | 557 | <varlistentry><term>DPkg::ConfigurePending</term> |
3e9c4f70 DK |
558 | <listitem><para>If this option is set apt will call <command>dpkg --configure --pending</command> |
559 | to let dpkg handle all required configurations and triggers. This option is activated automatic | |
5e312de7 | 560 | per default if the previous option is not set to <literal>all</literal>, but deactivating could be useful |
5f4331c4 | 561 | if you want to run APT multiple times in a row - e.g. in an installer. In these sceneries you could |
3e9c4f70 DK |
562 | deactivate this option in all but the last run.</para></listitem> |
563 | </varlistentry> | |
5e312de7 DK |
564 | <varlistentry><term>DPkg::TriggersPending</term> |
565 | <listitem><para>Useful for <literal>smart</literal> configuration as a package which has pending | |
566 | triggers is not considered as <literal>installed</literal> and dpkg treats them as <literal>unpacked</literal> | |
567 | currently which is a dealbreaker for Pre-Dependencies (see debbugs #526774). Note that this will | |
568 | process all triggers, not only the triggers needed to configure this package.</para></listitem> | |
569 | </varlistentry> | |
5e312de7 DK |
570 | <varlistentry><term>PackageManager::UnpackAll</term> |
571 | <listitem><para>As the configuration can be deferred to be done at the end by dpkg it can be | |
572 | tried to order the unpack series only by critical needs, e.g. by Pre-Depends. Default is true | |
a9564741 | 573 | and therefore the "old" method of ordering in various steps by everything. While both method |
5e312de7 DK |
574 | were present in earlier APT versions the <literal>OrderCritical</literal> method was unused, so |
575 | this method is very experimental and needs further improvements before becoming really useful. | |
576 | </para></listitem> | |
577 | </varlistentry> | |
578 | <varlistentry><term>OrderList::Score::Immediate</term> | |
579 | <listitem><para>Essential packages (and there dependencies) should be configured immediately | |
580 | after unpacking. It will be a good idea to do this quite early in the upgrade process as these | |
581 | these configure calls require currently also <literal>DPkg::TriggersPending</literal> which | |
582 | will run quite a few triggers (which maybe not needed). Essentials get per default a high score | |
a9564741 | 583 | but the immediate flag is relatively low (a package which has a Pre-Depends is higher rated). |
5e312de7 DK |
584 | These option and the others in the same group can be used to change the scoring. The following |
585 | example shows the settings with there default values. | |
586 | <literallayout>OrderList::Score { | |
587 | Delete 500; | |
588 | Essential 200; | |
589 | Immediate 10; | |
590 | PreDepends 50; | |
591 | };</literallayout> | |
592 | </para></listitem> | |
593 | </varlistentry> | |
3e9c4f70 DK |
594 | </variablelist> |
595 | </refsect2> | |
24f6490f AL |
596 | </refsect1> |
597 | ||
0224daf2 EL |
598 | <refsect1> |
599 | <title>Periodic and Archives options</title> | |
600 | <para><literal>APT::Periodic</literal> and <literal>APT::Archives</literal> | |
601 | groups of options configure behavior of apt periodic updates, which is | |
602 | done by <literal>/etc/cron.daily/apt</literal> script. See header of | |
603 | this script for the brief documentation of these options. | |
604 | </para> | |
605 | </refsect1> | |
606 | ||
be1b8568 EL |
607 | <refsect1> |
608 | <title>Debug options</title> | |
609 | <para> | |
610 | Enabling options in the <literal>Debug::</literal> section will | |
611 | cause debugging information to be sent to the standard error | |
612 | stream of the program utilizing the <literal>apt</literal> | |
613 | libraries, or enable special program modes that are primarily | |
614 | useful for debugging the behavior of <literal>apt</literal>. | |
615 | Most of these options are not interesting to a normal user, but a | |
616 | few may be: | |
617 | ||
618 | <itemizedlist> | |
619 | <listitem> | |
620 | <para> | |
621 | <literal>Debug::pkgProblemResolver</literal> enables output | |
622 | about the decisions made by | |
623 | <literal>dist-upgrade, upgrade, install, remove, purge</literal>. | |
624 | </para> | |
625 | </listitem> | |
626 | ||
627 | <listitem> | |
628 | <para> | |
629 | <literal>Debug::NoLocking</literal> disables all file | |
630 | locking. This can be used to run some operations (for | |
631 | instance, <literal>apt-get -s install</literal>) as a | |
632 | non-root user. | |
633 | </para> | |
634 | </listitem> | |
635 | ||
636 | <listitem> | |
637 | <para> | |
638 | <literal>Debug::pkgDPkgPM</literal> prints out the actual | |
639 | command line each time that <literal>apt</literal> invokes | |
640 | &dpkg;. | |
641 | </para> | |
642 | </listitem> | |
643 | ||
644 | <listitem> | |
645 | <para> | |
646 | <literal>Debug::IdentCdrom</literal> disables the inclusion | |
647 | of statfs data in CDROM IDs. <!-- TODO: provide a | |
648 | motivating example, except I haven't a clue why you'd want | |
649 | to do this. --> | |
650 | </para> | |
651 | </listitem> | |
652 | </itemizedlist> | |
8a3642bd | 653 | </para> |
be1b8568 EL |
654 | |
655 | <para> | |
656 | A full list of debugging options to apt follows. | |
657 | </para> | |
658 | ||
659 | <variablelist> | |
660 | <varlistentry> | |
661 | <term><literal>Debug::Acquire::cdrom</literal></term> | |
662 | ||
663 | <listitem> | |
664 | <para> | |
665 | Print information related to accessing | |
666 | <literal>cdrom://</literal> sources. | |
667 | </para> | |
668 | </listitem> | |
669 | </varlistentry> | |
670 | ||
671 | <varlistentry> | |
672 | <term><literal>Debug::Acquire::ftp</literal></term> | |
673 | ||
674 | <listitem> | |
675 | <para> | |
676 | Print information related to downloading packages using | |
677 | FTP. | |
678 | </para> | |
679 | </listitem> | |
680 | </varlistentry> | |
681 | ||
682 | <varlistentry> | |
683 | <term><literal>Debug::Acquire::http</literal></term> | |
684 | ||
685 | <listitem> | |
686 | <para> | |
687 | Print information related to downloading packages using | |
688 | HTTP. | |
689 | </para> | |
690 | </listitem> | |
691 | </varlistentry> | |
692 | ||
693 | <varlistentry> | |
694 | <term><literal>Debug::Acquire::https</literal></term> | |
695 | ||
696 | <listitem> | |
697 | <para> | |
698 | Print information related to downloading packages using | |
699 | HTTPS. | |
700 | </para> | |
701 | </listitem> | |
702 | </varlistentry> | |
703 | ||
704 | <varlistentry> | |
705 | <term><literal>Debug::Acquire::gpgv</literal></term> | |
706 | ||
707 | <listitem> | |
708 | <para> | |
709 | Print information related to verifying cryptographic | |
710 | signatures using <literal>gpg</literal>. | |
711 | </para> | |
712 | </listitem> | |
713 | </varlistentry> | |
714 | ||
715 | <varlistentry> | |
716 | <term><literal>Debug::aptcdrom</literal></term> | |
717 | ||
718 | <listitem> | |
719 | <para> | |
720 | Output information about the process of accessing | |
721 | collections of packages stored on CD-ROMs. | |
722 | </para> | |
723 | </listitem> | |
724 | </varlistentry> | |
725 | ||
726 | <varlistentry> | |
727 | <term><literal>Debug::BuildDeps</literal></term> | |
728 | <listitem> | |
729 | <para> | |
730 | Describes the process of resolving build-dependencies in | |
731 | &apt-get;. | |
732 | </para> | |
733 | </listitem> | |
734 | </varlistentry> | |
735 | ||
736 | <varlistentry> | |
737 | <term><literal>Debug::Hashes</literal></term> | |
738 | <listitem> | |
739 | <para> | |
740 | Output each cryptographic hash that is generated by the | |
741 | <literal>apt</literal> libraries. | |
742 | </para> | |
743 | </listitem> | |
744 | </varlistentry> | |
745 | ||
746 | <varlistentry> | |
747 | <term><literal>Debug::IdentCDROM</literal></term> | |
748 | <listitem> | |
749 | <para> | |
750 | Do not include information from <literal>statfs</literal>, | |
751 | namely the number of used and free blocks on the CD-ROM | |
752 | filesystem, when generating an ID for a CD-ROM. | |
753 | </para> | |
754 | </listitem> | |
755 | </varlistentry> | |
756 | ||
757 | <varlistentry> | |
758 | <term><literal>Debug::NoLocking</literal></term> | |
759 | <listitem> | |
760 | <para> | |
761 | Disable all file locking. For instance, this will allow | |
762 | two instances of <quote><literal>apt-get | |
763 | update</literal></quote> to run at the same time. | |
764 | </para> | |
765 | </listitem> | |
766 | </varlistentry> | |
767 | ||
768 | <varlistentry> | |
769 | <term><literal>Debug::pkgAcquire</literal></term> | |
770 | ||
771 | <listitem> | |
772 | <para> | |
773 | Log when items are added to or removed from the global | |
774 | download queue. | |
775 | </para> | |
776 | </listitem> | |
777 | </varlistentry> | |
778 | ||
779 | <varlistentry> | |
780 | <term><literal>Debug::pkgAcquire::Auth</literal></term> | |
781 | <listitem> | |
782 | <para> | |
783 | Output status messages and errors related to verifying | |
784 | checksums and cryptographic signatures of downloaded files. | |
785 | </para> | |
786 | </listitem> | |
787 | </varlistentry> | |
788 | ||
789 | <varlistentry> | |
790 | <term><literal>Debug::pkgAcquire::Diffs</literal></term> | |
791 | <listitem> | |
792 | <para> | |
793 | Output information about downloading and applying package | |
794 | index list diffs, and errors relating to package index list | |
795 | diffs. | |
796 | </para> | |
797 | </listitem> | |
798 | </varlistentry> | |
799 | ||
800 | <varlistentry> | |
801 | <term><literal>Debug::pkgAcquire::RRed</literal></term> | |
802 | ||
803 | <listitem> | |
804 | <para> | |
805 | Output information related to patching apt package lists | |
806 | when downloading index diffs instead of full indices. | |
807 | </para> | |
808 | </listitem> | |
809 | </varlistentry> | |
810 | ||
811 | <varlistentry> | |
812 | <term><literal>Debug::pkgAcquire::Worker</literal></term> | |
813 | ||
814 | <listitem> | |
815 | <para> | |
816 | Log all interactions with the sub-processes that actually | |
817 | perform downloads. | |
818 | </para> | |
819 | </listitem> | |
820 | </varlistentry> | |
821 | ||
822 | <varlistentry> | |
823 | <term><literal>Debug::pkgAutoRemove</literal></term> | |
824 | ||
825 | <listitem> | |
826 | <para> | |
827 | Log events related to the automatically-installed status of | |
828 | packages and to the removal of unused packages. | |
829 | </para> | |
830 | </listitem> | |
831 | </varlistentry> | |
832 | ||
833 | <varlistentry> | |
834 | <term><literal>Debug::pkgDepCache::AutoInstall</literal></term> | |
835 | <listitem> | |
836 | <para> | |
837 | Generate debug messages describing which packages are being | |
838 | automatically installed to resolve dependencies. This | |
839 | corresponds to the initial auto-install pass performed in, | |
840 | e.g., <literal>apt-get install</literal>, and not to the | |
841 | full <literal>apt</literal> dependency resolver; see | |
842 | <literal>Debug::pkgProblemResolver</literal> for that. | |
843 | </para> | |
844 | </listitem> | |
845 | </varlistentry> | |
846 | ||
af29ffb4 MV |
847 | <varlistentry> |
848 | <term><literal>Debug::pkgDepCache::Marker</literal></term> | |
849 | <listitem> | |
850 | <para> | |
851 | Generate debug messages describing which package is marked | |
852 | as keep/install/remove while the ProblemResolver does his work. | |
853 | Each addition or deletion may trigger additional actions; | |
854 | they are shown indented two additional space under the original entry. | |
855 | The format for each line is <literal>MarkKeep</literal>, | |
856 | <literal>MarkDelete</literal> or <literal>MarkInstall</literal> followed by | |
857 | <literal>package-name <a.b.c -> d.e.f | x.y.z> (section)</literal> | |
858 | where <literal>a.b.c</literal> is the current version of the package, | |
859 | <literal>d.e.f</literal> is the version considered for installation and | |
860 | <literal>x.y.z</literal> is a newer version, but not considered for installation | |
861 | (because of a low pin score). The later two can be omitted if there is none or if | |
862 | it is the same version as the installed. | |
863 | <literal>section</literal> is the name of the section the package appears in. | |
864 | </para> | |
865 | </listitem> | |
866 | </varlistentry> | |
867 | ||
be1b8568 EL |
868 | <!-- Question: why doesn't this do anything? The code says it should. --> |
869 | <varlistentry> | |
870 | <term><literal>Debug::pkgInitConfig</literal></term> | |
871 | <listitem> | |
872 | <para> | |
d82cdf73 | 873 | Dump the default configuration to standard error on |
be1b8568 EL |
874 | startup. |
875 | </para> | |
876 | </listitem> | |
877 | </varlistentry> | |
878 | ||
879 | <varlistentry> | |
880 | <term><literal>Debug::pkgDPkgPM</literal></term> | |
881 | <listitem> | |
882 | <para> | |
883 | When invoking &dpkg;, output the precise command line with | |
884 | which it is being invoked, with arguments separated by a | |
885 | single space character. | |
886 | </para> | |
887 | </listitem> | |
888 | </varlistentry> | |
889 | ||
890 | <varlistentry> | |
891 | <term><literal>Debug::pkgDPkgProgressReporting</literal></term> | |
892 | <listitem> | |
893 | <para> | |
894 | Output all the data received from &dpkg; on the status file | |
895 | descriptor and any errors encountered while parsing it. | |
896 | </para> | |
897 | </listitem> | |
898 | </varlistentry> | |
899 | ||
900 | <varlistentry> | |
901 | <term><literal>Debug::pkgOrderList</literal></term> | |
902 | ||
903 | <listitem> | |
904 | <para> | |
905 | Generate a trace of the algorithm that decides the order in | |
906 | which <literal>apt</literal> should pass packages to | |
907 | &dpkg;. | |
908 | </para> | |
909 | </listitem> | |
910 | </varlistentry> | |
911 | ||
912 | <varlistentry> | |
913 | <term><literal>Debug::pkgPackageManager</literal></term> | |
914 | ||
915 | <listitem> | |
916 | <para> | |
917 | Output status messages tracing the steps performed when | |
918 | invoking &dpkg;. | |
919 | </para> | |
920 | </listitem> | |
921 | </varlistentry> | |
922 | ||
923 | <varlistentry> | |
924 | <term><literal>Debug::pkgPolicy</literal></term> | |
925 | ||
926 | <listitem> | |
927 | <para> | |
928 | Output the priority of each package list on startup. | |
929 | </para> | |
930 | </listitem> | |
931 | </varlistentry> | |
932 | ||
933 | <varlistentry> | |
934 | <term><literal>Debug::pkgProblemResolver</literal></term> | |
935 | ||
936 | <listitem> | |
937 | <para> | |
938 | Trace the execution of the dependency resolver (this | |
939 | applies only to what happens when a complex dependency | |
940 | problem is encountered). | |
941 | </para> | |
942 | </listitem> | |
943 | </varlistentry> | |
944 | ||
8b4894fe MV |
945 | <varlistentry> |
946 | <term><literal>Debug::pkgProblemResolver::ShowScores</literal></term> | |
947 | <listitem> | |
948 | <para> | |
949 | Display a list of all installed packages with their calculated score | |
950 | used by the pkgProblemResolver. The description of the package | |
951 | is the same as described in <literal>Debug::pkgDepCache::Marker</literal> | |
952 | </para> | |
953 | </listitem> | |
954 | </varlistentry> | |
955 | ||
be1b8568 EL |
956 | <varlistentry> |
957 | <term><literal>Debug::sourceList</literal></term> | |
958 | ||
959 | <listitem> | |
960 | <para> | |
961 | Print information about the vendors read from | |
962 | <filename>/etc/apt/vendors.list</filename>. | |
963 | </para> | |
964 | </listitem> | |
965 | </varlistentry> | |
966 | ||
d82cdf73 MV |
967 | <!-- 2009/07/11 Currently used nowhere. The corresponding code |
968 | is commented. | |
be1b8568 EL |
969 | <varlistentry> |
970 | <term><literal>Debug::Vendor</literal></term> | |
971 | ||
972 | <listitem> | |
973 | <para> | |
974 | Print information about each vendor. | |
975 | </para> | |
976 | </listitem> | |
977 | </varlistentry> | |
d82cdf73 | 978 | --> |
be1b8568 | 979 | </variablelist> |
24f6490f AL |
980 | </refsect1> |
981 | ||
982 | <refsect1><title>Examples</title> | |
640c5d94 MZ |
983 | <para>&configureindex; is a |
984 | configuration file showing example values for all possible | |
24f6490f AL |
985 | options.</para> |
986 | </refsect1> | |
987 | ||
988 | <refsect1><title>Files</title> | |
6e2525a1 | 989 | <variablelist> |
1221c3a3 | 990 | &file-aptconf; |
6e2525a1 | 991 | </variablelist> |
24f6490f AL |
992 | </refsect1> |
993 | ||
994 | <refsect1><title>See Also</title> | |
995 | <para>&apt-cache;, &apt-config;<!-- ? reading apt.conf -->, &apt-preferences;.</para> | |
996 | </refsect1> | |
997 | ||
998 | &manbugs; | |
24f6490f AL |
999 | |
1000 | </refentry> | |
1001 |