apt.conf.5.xml 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805
  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. ]>
  7. <refentry>
  8. <refentryinfo>
  9. &apt-author.jgunthorpe;
  10. &apt-author.team;
  11. <author>
  12. <firstname>Daniel</firstname>
  13. <surname>Burrows</surname>
  14. <contrib>Initial documentation of Debug::*.</contrib>
  15. <email>dburrows@debian.org</email>
  16. </author>
  17. &apt-email;
  18. &apt-product;
  19. <!-- The last update date -->
  20. <date>10 December 2008</date>
  21. </refentryinfo>
  22. <refmeta>
  23. <refentrytitle>apt.conf</refentrytitle>
  24. <manvolnum>5</manvolnum>
  25. </refmeta>
  26. <!-- Man page title -->
  27. <refnamediv>
  28. <refname>apt.conf</refname>
  29. <refpurpose>Configuration file for APT</refpurpose>
  30. </refnamediv>
  31. <refsect1><title>Description</title>
  32. <para><filename>apt.conf</filename> is the main configuration file for the APT suite of
  33. tools, all tools make use of the configuration file and a common command line
  34. parser to provide a uniform environment. When an APT tool starts up it will
  35. read the configuration specified by the <envar>APT_CONFIG</envar> environment
  36. variable (if any) and then read the files in <literal>Dir::Etc::Parts</literal>
  37. then read the main configuration file specified by
  38. <literal>Dir::Etc::main</literal> then finally apply the
  39. command line options to override the configuration directives, possibly
  40. loading even more config files.</para>
  41. <para>The configuration file is organized in a tree with options organized into
  42. functional groups. option specification is given with a double colon
  43. notation, for instance <literal>APT::Get::Assume-Yes</literal> is an option within
  44. the APT tool group, for the Get tool. options do not inherit from their
  45. parent groups.</para>
  46. <para>Syntactically the configuration language is modeled after what the ISC tools
  47. such as bind and dhcp use. Lines starting with
  48. <literal>//</literal> are treated as comments (ignored), as well as all text
  49. between <literal>/*</literal> and <literal>*/</literal>, just like C/C++ comments.
  50. Each line is of the form
  51. <literal>APT::Get::Assume-Yes "true";</literal> The trailing
  52. semicolon is required and the quotes are optional. A new scope can be
  53. opened with curly braces, like:</para>
  54. <informalexample><programlisting>
  55. APT {
  56. Get {
  57. Assume-Yes "true";
  58. Fix-Broken "true";
  59. };
  60. };
  61. </programlisting></informalexample>
  62. <para>with newlines placed to make it more readable. Lists can be created by
  63. opening a scope and including a single word enclosed in quotes followed by a
  64. semicolon. Multiple entries can be included, each separated by a semicolon.</para>
  65. <informalexample><programlisting>
  66. DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";};
  67. </programlisting></informalexample>
  68. <para>In general the sample configuration file in
  69. <filename>&docdir;examples/apt.conf</filename> &configureindex;
  70. is a good guide for how it should look.</para>
  71. <para>The names of the configuration items are not case-sensitive. So in the previous example
  72. you could use <literal>dpkg::pre-install-pkgs</literal>.</para>
  73. <para>Two specials are allowed, <literal>#include</literal> and <literal>#clear</literal>
  74. <literal>#include</literal> will include the given file, unless the filename
  75. ends in a slash, then the whole directory is included.
  76. <literal>#clear</literal> is used to erase a list of names.</para>
  77. <para>All of the APT tools take a -o option which allows an arbitrary configuration
  78. directive to be specified on the command line. The syntax is a full option
  79. name (<literal>APT::Get::Assume-Yes</literal> for instance) followed by an equals
  80. sign then the new value of the option. Lists can be appended too by adding
  81. a trailing :: to the list name.</para>
  82. </refsect1>
  83. <refsect1><title>The APT Group</title>
  84. <para>This group of options controls general APT behavior as well as holding the
  85. options for all of the tools.</para>
  86. <variablelist>
  87. <varlistentry><term>Architecture</term>
  88. <listitem><para>System Architecture; sets the architecture to use when fetching files and
  89. parsing package lists. The internal default is the architecture apt was
  90. compiled for.</para></listitem>
  91. </varlistentry>
  92. <varlistentry><term>Default-Release</term>
  93. <listitem><para>Default release to install packages from if more than one
  94. version available. Contains release name or release version. Examples: 'stable', 'testing', 'unstable', '4.0', '5.0*'. Release codenames ('etch', 'lenny' etc.) are not allowed now. See also &apt-preferences;.</para></listitem>
  95. </varlistentry>
  96. <varlistentry><term>Ignore-Hold</term>
  97. <listitem><para>Ignore Held packages; This global option causes the problem resolver to
  98. ignore held packages in its decision making.</para></listitem>
  99. </varlistentry>
  100. <varlistentry><term>Clean-Installed</term>
  101. <listitem><para>Defaults to on. When turned on the autoclean feature will remove any packages
  102. which can no longer be downloaded from the cache. If turned off then
  103. packages that are locally installed are also excluded from cleaning - but
  104. note that APT provides no direct means to reinstall them.</para></listitem>
  105. </varlistentry>
  106. <varlistentry><term>Immediate-Configure</term>
  107. <listitem><para>Disable Immediate Configuration; This dangerous option disables some
  108. of APT's ordering code to cause it to make fewer dpkg calls. Doing
  109. so may be necessary on some extremely slow single user systems but
  110. is very dangerous and may cause package install scripts to fail or worse.
  111. Use at your own risk.</para></listitem>
  112. </varlistentry>
  113. <varlistentry><term>Force-LoopBreak</term>
  114. <listitem><para>Never Enable this option unless you -really- know what you are doing. It
  115. permits APT to temporarily remove an essential package to break a
  116. Conflicts/Conflicts or Conflicts/Pre-Depend loop between two essential
  117. packages. SUCH A LOOP SHOULD NEVER EXIST AND IS A GRAVE BUG. This option
  118. will work if the essential packages are not tar, gzip, libc, dpkg, bash or
  119. anything that those packages depend on.</para></listitem>
  120. </varlistentry>
  121. <varlistentry><term>Cache-Limit</term>
  122. <listitem><para>APT uses a fixed size memory mapped cache file to store the 'available'
  123. information. This sets the size of that cache (in bytes).</para></listitem>
  124. </varlistentry>
  125. <varlistentry><term>Build-Essential</term>
  126. <listitem><para>Defines which package(s) are considered essential build dependencies.</para></listitem>
  127. </varlistentry>
  128. <varlistentry><term>Get</term>
  129. <listitem><para>The Get subsection controls the &apt-get; tool, please see its
  130. documentation for more information about the options here.</para></listitem>
  131. </varlistentry>
  132. <varlistentry><term>Cache</term>
  133. <listitem><para>The Cache subsection controls the &apt-cache; tool, please see its
  134. documentation for more information about the options here.</para></listitem>
  135. </varlistentry>
  136. <varlistentry><term>CDROM</term>
  137. <listitem><para>The CDROM subsection controls the &apt-cdrom; tool, please see its
  138. documentation for more information about the options here.</para></listitem>
  139. </varlistentry>
  140. </variablelist>
  141. </refsect1>
  142. <refsect1><title>The Acquire Group</title>
  143. <para>The <literal>Acquire</literal> group of options controls the download of packages
  144. and the URI handlers.
  145. <variablelist>
  146. <varlistentry><term>PDiffs</term>
  147. <listitem><para>Try do download deltas called <literal>PDiffs</literal> for
  148. Packages or Sources files instead of downloading whole ones. True
  149. by default.</para></listitem>
  150. </varlistentry>
  151. <varlistentry><term>Queue-Mode</term>
  152. <listitem><para>Queuing mode; <literal>Queue-Mode</literal> can be one of <literal>host</literal> or
  153. <literal>access</literal> which determines how APT parallelizes outgoing
  154. connections. <literal>host</literal> means that one connection per target host
  155. will be opened, <literal>access</literal> means that one connection per URI type
  156. will be opened.</para></listitem>
  157. </varlistentry>
  158. <varlistentry><term>Retries</term>
  159. <listitem><para>Number of retries to perform. If this is non-zero APT will retry failed
  160. files the given number of times.</para></listitem>
  161. </varlistentry>
  162. <varlistentry><term>Source-Symlinks</term>
  163. <listitem><para>Use symlinks for source archives. If set to true then source archives will
  164. be symlinked when possible instead of copying. True is the default.</para></listitem>
  165. </varlistentry>
  166. <varlistentry><term>http</term>
  167. <listitem><para>HTTP URIs; http::Proxy is the default http proxy to use. It is in the
  168. standard form of <literal>http://[[user][:pass]@]host[:port]/</literal>. Per
  169. host proxies can also be specified by using the form
  170. <literal>http::Proxy::&lt;host&gt;</literal> with the special keyword <literal>DIRECT</literal>
  171. meaning to use no proxies. If no one of the above settings is specified,
  172. <envar>http_proxy</envar> environment variable
  173. will be used.</para>
  174. <para>Three settings are provided for cache control with HTTP/1.1 compliant
  175. proxy caches. <literal>No-Cache</literal> tells the proxy to not use its cached
  176. response under any circumstances, <literal>Max-Age</literal> is sent only for
  177. index files and tells the cache to refresh its object if it is older than
  178. the given number of seconds. Debian updates its index files daily so the
  179. default is 1 day. <literal>No-Store</literal> specifies that the cache should never
  180. store this request, it is only set for archive files. This may be useful
  181. to prevent polluting a proxy cache with very large .deb files. Note:
  182. Squid 2.0.2 does not support any of these options.</para>
  183. <para>The option <literal>timeout</literal> sets the timeout timer used by the method,
  184. this applies to all things including connection timeout and data timeout.</para>
  185. <para>One setting is provided to control the pipeline depth in cases where the
  186. remote server is not RFC conforming or buggy (such as Squid 2.0.2)
  187. <literal>Acquire::http::Pipeline-Depth</literal> can be a value from 0 to 5
  188. indicating how many outstanding requests APT should send. A value of
  189. zero MUST be specified if the remote host does not properly linger
  190. on TCP connections - otherwise data corruption will occur. Hosts which
  191. require this are in violation of RFC 2068.</para></listitem>
  192. </varlistentry>
  193. <varlistentry><term>https</term>
  194. <listitem><para>HTTPS URIs. Cache-control and proxy options are the same as for
  195. <literal>http</literal> method.
  196. <literal>Pipeline-Depth</literal> option is not supported yet.</para>
  197. <para><literal>CaInfo</literal> suboption specifies place of file that
  198. holds info about trusted certificates.
  199. <literal>&lt;host&gt;::CaInfo</literal> is corresponding per-host option.
  200. <literal>Verify-Peer</literal> boolean suboption determines whether verify
  201. server's host certificate against trusted certificates or not.
  202. <literal>&lt;host&gt;::Verify-Peer</literal> is corresponding per-host option.
  203. <literal>Verify-Host</literal> boolean suboption determines whether verify
  204. server's hostname or not.
  205. <literal>&lt;host&gt;::Verify-Host</literal> is corresponding per-host option.
  206. <literal>SslCert</literal> determines what certificate to use for client
  207. authentication. <literal>&lt;host&gt;::SslCert</literal> is corresponding per-host option.
  208. <literal>SslKey</literal> determines what private key to use for client
  209. authentication. <literal>&lt;host&gt;::SslKey</literal> is corresponding per-host option.
  210. <literal>SslForceVersion</literal> overrides default SSL version to use.
  211. Can contain 'TLSv1' or 'SSLv3' string.
  212. <literal>&lt;host&gt;::SslForceVersion</literal> is corresponding per-host option.
  213. </para></listitem></varlistentry>
  214. <varlistentry><term>ftp</term>
  215. <listitem><para>FTP URIs; ftp::Proxy is the default ftp proxy to use. It is in the
  216. standard form of <literal>ftp://[[user][:pass]@]host[:port]/</literal>. Per
  217. host proxies can also be specified by using the form
  218. <literal>ftp::Proxy::&lt;host&gt;</literal> with the special keyword <literal>DIRECT</literal>
  219. meaning to use no proxies. If no one of the above settings is specified,
  220. <envar>ftp_proxy</envar> environment variable
  221. will be used. To use a ftp
  222. proxy you will have to set the <literal>ftp::ProxyLogin</literal> script in the
  223. configuration file. This entry specifies the commands to send to tell
  224. the proxy server what to connect to. Please see
  225. &configureindex; for an example of
  226. how to do this. The substitution variables available are
  227. <literal>$(PROXY_USER)</literal> <literal>$(PROXY_PASS)</literal> <literal>$(SITE_USER)</literal>
  228. <literal>$(SITE_PASS)</literal> <literal>$(SITE)</literal> and <literal>$(SITE_PORT)</literal>
  229. Each is taken from it's respective URI component.</para>
  230. <para>The option <literal>timeout</literal> sets the timeout timer used by the method,
  231. this applies to all things including connection timeout and data timeout.</para>
  232. <para>Several settings are provided to control passive mode. Generally it is
  233. safe to leave passive mode on, it works in nearly every environment.
  234. However some situations require that passive mode be disabled and port
  235. mode ftp used instead. This can be done globally, for connections that
  236. go through a proxy or for a specific host (See the sample config file
  237. for examples).</para>
  238. <para>It is possible to proxy FTP over HTTP by setting the <envar>ftp_proxy</envar>
  239. environment variable to a http url - see the discussion of the http method
  240. above for syntax. You cannot set this in the configuration file and it is
  241. not recommended to use FTP over HTTP due to its low efficiency.</para>
  242. <para>The setting <literal>ForceExtended</literal> controls the use of RFC2428
  243. <literal>EPSV</literal> and <literal>EPRT</literal> commands. The default is false, which means
  244. these commands are only used if the control connection is IPv6. Setting this
  245. to true forces their use even on IPv4 connections. Note that most FTP servers
  246. do not support RFC2428.</para></listitem>
  247. </varlistentry>
  248. <varlistentry><term>cdrom</term>
  249. <listitem><para>CDROM URIs; the only setting for CDROM URIs is the mount point,
  250. <literal>cdrom::Mount</literal> which must be the mount point for the CDROM drive
  251. as specified in <filename>/etc/fstab</filename>. It is possible to provide
  252. alternate mount and unmount commands if your mount point cannot be listed
  253. in the fstab (such as an SMB mount and old mount packages). The syntax
  254. is to put <literallayout>"/cdrom/"::Mount "foo";</literallayout> within
  255. the cdrom block. It is important to have the trailing slash. Unmount
  256. commands can be specified using UMount.</para></listitem>
  257. </varlistentry>
  258. <varlistentry><term>gpgv</term>
  259. <listitem><para>GPGV URIs; the only option for GPGV URIs is the option to pass additional parameters to gpgv.
  260. <literal>gpgv::Options</literal> Additional options passed to gpgv.
  261. </para></listitem>
  262. </varlistentry>
  263. </variablelist>
  264. </para>
  265. </refsect1>
  266. <refsect1><title>Directories</title>
  267. <para>The <literal>Dir::State</literal> section has directories that pertain to local
  268. state information. <literal>lists</literal> is the directory to place downloaded
  269. package lists in and <literal>status</literal> is the name of the dpkg status file.
  270. <literal>preferences</literal> is the name of the APT preferences file.
  271. <literal>Dir::State</literal> contains the default directory to prefix on all sub
  272. items if they do not start with <filename>/</filename> or <filename>./</filename>.</para>
  273. <para><literal>Dir::Cache</literal> contains locations pertaining to local cache
  274. information, such as the two package caches <literal>srcpkgcache</literal> and
  275. <literal>pkgcache</literal> as well as the location to place downloaded archives,
  276. <literal>Dir::Cache::archives</literal>. Generation of caches can be turned off
  277. by setting their names to be blank. This will slow down startup but
  278. save disk space. It is probably preferred to turn off the pkgcache rather
  279. than the srcpkgcache. Like <literal>Dir::State</literal> the default
  280. directory is contained in <literal>Dir::Cache</literal></para>
  281. <para><literal>Dir::Etc</literal> contains the location of configuration files,
  282. <literal>sourcelist</literal> gives the location of the sourcelist and
  283. <literal>main</literal> is the default configuration file (setting has no effect,
  284. unless it is done from the config file specified by
  285. <envar>APT_CONFIG</envar>).</para>
  286. <para>The <literal>Dir::Parts</literal> setting reads in all the config fragments in
  287. lexical order from the directory specified. After this is done then the
  288. main config file is loaded.</para>
  289. <para>Binary programs are pointed to by <literal>Dir::Bin</literal>. <literal>Dir::Bin::Methods</literal>
  290. specifies the location of the method handlers and <literal>gzip</literal>,
  291. <literal>dpkg</literal>, <literal>apt-get</literal> <literal>dpkg-source</literal>
  292. <literal>dpkg-buildpackage</literal> and <literal>apt-cache</literal> specify the location
  293. of the respective programs.</para>
  294. <para>
  295. The configuration item <literal>RootDir</literal> has a special
  296. meaning. If set, all paths in <literal>Dir::</literal> will be
  297. relative to <literal>RootDir</literal>, <emphasis>even paths that
  298. are specified absolutely</emphasis>. So, for instance, if
  299. <literal>RootDir</literal> is set to
  300. <filename>/tmp/staging</filename> and
  301. <literal>Dir::State::status</literal> is set to
  302. <filename>/var/lib/dpkg/status</filename>, then the status file
  303. will be looked up in
  304. <filename>/tmp/staging/var/lib/dpkg/status</filename>.
  305. </para>
  306. </refsect1>
  307. <refsect1><title>APT in DSelect</title>
  308. <para>
  309. When APT is used as a &dselect; method several configuration directives
  310. control the default behaviour. These are in the <literal>DSelect</literal> section.</para>
  311. <variablelist>
  312. <varlistentry><term>Clean</term>
  313. <listitem><para>Cache Clean mode; this value may be one of always, prompt, auto,
  314. pre-auto and never. always and prompt will remove all packages from
  315. the cache after upgrading, prompt (the default) does so conditionally.
  316. auto removes only those packages which are no longer downloadable
  317. (replaced with a new version for instance). pre-auto performs this
  318. action before downloading new packages.</para></listitem>
  319. </varlistentry>
  320. <varlistentry><term>options</term>
  321. <listitem><para>The contents of this variable is passed to &apt-get; as command line
  322. options when it is run for the install phase.</para></listitem>
  323. </varlistentry>
  324. <varlistentry><term>Updateoptions</term>
  325. <listitem><para>The contents of this variable is passed to &apt-get; as command line
  326. options when it is run for the update phase.</para></listitem>
  327. </varlistentry>
  328. <varlistentry><term>PromptAfterUpdate</term>
  329. <listitem><para>If true the [U]pdate operation in &dselect; will always prompt to continue.
  330. The default is to prompt only on error.</para></listitem>
  331. </varlistentry>
  332. </variablelist>
  333. </refsect1>
  334. <refsect1><title>How APT calls dpkg</title>
  335. <para>Several configuration directives control how APT invokes &dpkg;. These are
  336. in the <literal>DPkg</literal> section.</para>
  337. <variablelist>
  338. <varlistentry><term>options</term>
  339. <listitem><para>This is a list of options to pass to dpkg. The options must be specified
  340. using the list notation and each list item is passed as a single argument
  341. to &dpkg;.</para></listitem>
  342. </varlistentry>
  343. <varlistentry><term>Pre-Invoke</term><term>Post-Invoke</term>
  344. <listitem><para>This is a list of shell commands to run before/after invoking &dpkg;.
  345. Like <literal>options</literal> this must be specified in list notation. The
  346. commands are invoked in order using <filename>/bin/sh</filename>, should any
  347. fail APT will abort.</para></listitem>
  348. </varlistentry>
  349. <varlistentry><term>Pre-Install-Pkgs</term>
  350. <listitem><para>This is a list of shell commands to run before invoking dpkg. Like
  351. <literal>options</literal> this must be specified in list notation. The commands
  352. are invoked in order using <filename>/bin/sh</filename>, should any fail APT
  353. will abort. APT will pass to the commands on standard input the
  354. filenames of all .deb files it is going to install, one per line.</para>
  355. <para>Version 2 of this protocol dumps more information, including the
  356. protocol version, the APT configuration space and the packages, files
  357. and versions being changed. Version 2 is enabled by setting
  358. <literal>DPkg::Tools::options::cmd::Version</literal> to 2. <literal>cmd</literal> is a
  359. command given to <literal>Pre-Install-Pkgs</literal>.</para></listitem>
  360. </varlistentry>
  361. <varlistentry><term>Run-Directory</term>
  362. <listitem><para>APT chdirs to this directory before invoking dpkg, the default is
  363. <filename>/</filename>.</para></listitem>
  364. </varlistentry>
  365. <varlistentry><term>Build-options</term>
  366. <listitem><para>These options are passed to &dpkg-buildpackage; when compiling packages,
  367. the default is to disable signing and produce all binaries.</para></listitem>
  368. </varlistentry>
  369. </variablelist>
  370. </refsect1>
  371. <refsect1>
  372. <title>Periodic and Archives options</title>
  373. <para><literal>APT::Periodic</literal> and <literal>APT::Archives</literal>
  374. groups of options configure behavior of apt periodic updates, which is
  375. done by <literal>/etc/cron.daily/apt</literal> script. See header of
  376. this script for the brief documentation of these options.
  377. </para>
  378. </refsect1>
  379. <refsect1>
  380. <title>Debug options</title>
  381. <para>
  382. Enabling options in the <literal>Debug::</literal> section will
  383. cause debugging information to be sent to the standard error
  384. stream of the program utilizing the <literal>apt</literal>
  385. libraries, or enable special program modes that are primarily
  386. useful for debugging the behavior of <literal>apt</literal>.
  387. Most of these options are not interesting to a normal user, but a
  388. few may be:
  389. <itemizedlist>
  390. <listitem>
  391. <para>
  392. <literal>Debug::pkgProblemResolver</literal> enables output
  393. about the decisions made by
  394. <literal>dist-upgrade, upgrade, install, remove, purge</literal>.
  395. </para>
  396. </listitem>
  397. <listitem>
  398. <para>
  399. <literal>Debug::NoLocking</literal> disables all file
  400. locking. This can be used to run some operations (for
  401. instance, <literal>apt-get -s install</literal>) as a
  402. non-root user.
  403. </para>
  404. </listitem>
  405. <listitem>
  406. <para>
  407. <literal>Debug::pkgDPkgPM</literal> prints out the actual
  408. command line each time that <literal>apt</literal> invokes
  409. &dpkg;.
  410. </para>
  411. </listitem>
  412. <listitem>
  413. <para>
  414. <literal>Debug::IdentCdrom</literal> disables the inclusion
  415. of statfs data in CDROM IDs. <!-- TODO: provide a
  416. motivating example, except I haven't a clue why you'd want
  417. to do this. -->
  418. </para>
  419. </listitem>
  420. </itemizedlist>
  421. </para>
  422. <para>
  423. A full list of debugging options to apt follows.
  424. </para>
  425. <variablelist>
  426. <varlistentry>
  427. <term><literal>Debug::Acquire::cdrom</literal></term>
  428. <listitem>
  429. <para>
  430. Print information related to accessing
  431. <literal>cdrom://</literal> sources.
  432. </para>
  433. </listitem>
  434. </varlistentry>
  435. <varlistentry>
  436. <term><literal>Debug::Acquire::ftp</literal></term>
  437. <listitem>
  438. <para>
  439. Print information related to downloading packages using
  440. FTP.
  441. </para>
  442. </listitem>
  443. </varlistentry>
  444. <varlistentry>
  445. <term><literal>Debug::Acquire::http</literal></term>
  446. <listitem>
  447. <para>
  448. Print information related to downloading packages using
  449. HTTP.
  450. </para>
  451. </listitem>
  452. </varlistentry>
  453. <varlistentry>
  454. <term><literal>Debug::Acquire::https</literal></term>
  455. <listitem>
  456. <para>
  457. Print information related to downloading packages using
  458. HTTPS.
  459. </para>
  460. </listitem>
  461. </varlistentry>
  462. <varlistentry>
  463. <term><literal>Debug::Acquire::gpgv</literal></term>
  464. <listitem>
  465. <para>
  466. Print information related to verifying cryptographic
  467. signatures using <literal>gpg</literal>.
  468. </para>
  469. </listitem>
  470. </varlistentry>
  471. <varlistentry>
  472. <term><literal>Debug::aptcdrom</literal></term>
  473. <listitem>
  474. <para>
  475. Output information about the process of accessing
  476. collections of packages stored on CD-ROMs.
  477. </para>
  478. </listitem>
  479. </varlistentry>
  480. <varlistentry>
  481. <term><literal>Debug::BuildDeps</literal></term>
  482. <listitem>
  483. <para>
  484. Describes the process of resolving build-dependencies in
  485. &apt-get;.
  486. </para>
  487. </listitem>
  488. </varlistentry>
  489. <varlistentry>
  490. <term><literal>Debug::Hashes</literal></term>
  491. <listitem>
  492. <para>
  493. Output each cryptographic hash that is generated by the
  494. <literal>apt</literal> libraries.
  495. </para>
  496. </listitem>
  497. </varlistentry>
  498. <varlistentry>
  499. <term><literal>Debug::IdentCDROM</literal></term>
  500. <listitem>
  501. <para>
  502. Do not include information from <literal>statfs</literal>,
  503. namely the number of used and free blocks on the CD-ROM
  504. filesystem, when generating an ID for a CD-ROM.
  505. </para>
  506. </listitem>
  507. </varlistentry>
  508. <varlistentry>
  509. <term><literal>Debug::NoLocking</literal></term>
  510. <listitem>
  511. <para>
  512. Disable all file locking. For instance, this will allow
  513. two instances of <quote><literal>apt-get
  514. update</literal></quote> to run at the same time.
  515. </para>
  516. </listitem>
  517. </varlistentry>
  518. <varlistentry>
  519. <term><literal>Debug::pkgAcquire</literal></term>
  520. <listitem>
  521. <para>
  522. Log when items are added to or removed from the global
  523. download queue.
  524. </para>
  525. </listitem>
  526. </varlistentry>
  527. <varlistentry>
  528. <term><literal>Debug::pkgAcquire::Auth</literal></term>
  529. <listitem>
  530. <para>
  531. Output status messages and errors related to verifying
  532. checksums and cryptographic signatures of downloaded files.
  533. </para>
  534. </listitem>
  535. </varlistentry>
  536. <varlistentry>
  537. <term><literal>Debug::pkgAcquire::Diffs</literal></term>
  538. <listitem>
  539. <para>
  540. Output information about downloading and applying package
  541. index list diffs, and errors relating to package index list
  542. diffs.
  543. </para>
  544. </listitem>
  545. </varlistentry>
  546. <varlistentry>
  547. <term><literal>Debug::pkgAcquire::RRed</literal></term>
  548. <listitem>
  549. <para>
  550. Output information related to patching apt package lists
  551. when downloading index diffs instead of full indices.
  552. </para>
  553. </listitem>
  554. </varlistentry>
  555. <varlistentry>
  556. <term><literal>Debug::pkgAcquire::Worker</literal></term>
  557. <listitem>
  558. <para>
  559. Log all interactions with the sub-processes that actually
  560. perform downloads.
  561. </para>
  562. </listitem>
  563. </varlistentry>
  564. <varlistentry>
  565. <term><literal>Debug::pkgAutoRemove</literal></term>
  566. <listitem>
  567. <para>
  568. Log events related to the automatically-installed status of
  569. packages and to the removal of unused packages.
  570. </para>
  571. </listitem>
  572. </varlistentry>
  573. <varlistentry>
  574. <term><literal>Debug::pkgDepCache::AutoInstall</literal></term>
  575. <listitem>
  576. <para>
  577. Generate debug messages describing which packages are being
  578. automatically installed to resolve dependencies. This
  579. corresponds to the initial auto-install pass performed in,
  580. e.g., <literal>apt-get install</literal>, and not to the
  581. full <literal>apt</literal> dependency resolver; see
  582. <literal>Debug::pkgProblemResolver</literal> for that.
  583. </para>
  584. </listitem>
  585. </varlistentry>
  586. <!-- Question: why doesn't this do anything? The code says it should. -->
  587. <varlistentry>
  588. <term><literal>Debug::pkgInitConfig</literal></term>
  589. <listitem>
  590. <para>
  591. Dump the default configuration to standard output on
  592. startup.
  593. </para>
  594. </listitem>
  595. </varlistentry>
  596. <varlistentry>
  597. <term><literal>Debug::pkgDPkgPM</literal></term>
  598. <listitem>
  599. <para>
  600. When invoking &dpkg;, output the precise command line with
  601. which it is being invoked, with arguments separated by a
  602. single space character.
  603. </para>
  604. </listitem>
  605. </varlistentry>
  606. <varlistentry>
  607. <term><literal>Debug::pkgDPkgProgressReporting</literal></term>
  608. <listitem>
  609. <para>
  610. Output all the data received from &dpkg; on the status file
  611. descriptor and any errors encountered while parsing it.
  612. </para>
  613. </listitem>
  614. </varlistentry>
  615. <varlistentry>
  616. <term><literal>Debug::pkgOrderList</literal></term>
  617. <listitem>
  618. <para>
  619. Generate a trace of the algorithm that decides the order in
  620. which <literal>apt</literal> should pass packages to
  621. &dpkg;.
  622. </para>
  623. </listitem>
  624. </varlistentry>
  625. <varlistentry>
  626. <term><literal>Debug::pkgPackageManager</literal></term>
  627. <listitem>
  628. <para>
  629. Output status messages tracing the steps performed when
  630. invoking &dpkg;.
  631. </para>
  632. </listitem>
  633. </varlistentry>
  634. <varlistentry>
  635. <term><literal>Debug::pkgPolicy</literal></term>
  636. <listitem>
  637. <para>
  638. Output the priority of each package list on startup.
  639. </para>
  640. </listitem>
  641. </varlistentry>
  642. <varlistentry>
  643. <term><literal>Debug::pkgProblemResolver</literal></term>
  644. <listitem>
  645. <para>
  646. Trace the execution of the dependency resolver (this
  647. applies only to what happens when a complex dependency
  648. problem is encountered).
  649. </para>
  650. </listitem>
  651. </varlistentry>
  652. <varlistentry>
  653. <term><literal>Debug::sourceList</literal></term>
  654. <listitem>
  655. <para>
  656. Print information about the vendors read from
  657. <filename>/etc/apt/vendors.list</filename>.
  658. </para>
  659. </listitem>
  660. </varlistentry>
  661. <varlistentry>
  662. <term><literal>Debug::Vendor</literal></term>
  663. <listitem>
  664. <para>
  665. Print information about each vendor.
  666. </para>
  667. </listitem>
  668. </varlistentry>
  669. </variablelist>
  670. </refsect1>
  671. <refsect1><title>Examples</title>
  672. <para>&configureindex; is a
  673. configuration file showing example values for all possible
  674. options.</para>
  675. </refsect1>
  676. <refsect1><title>Files</title>
  677. <para><filename>/etc/apt/apt.conf</filename></para>
  678. </refsect1>
  679. <refsect1><title>See Also</title>
  680. <para>&apt-cache;, &apt-config;<!-- ? reading apt.conf -->, &apt-preferences;.</para>
  681. </refsect1>
  682. &manbugs;
  683. </refentry>