apt.conf.5.xml 52 KB

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