apt.conf.5.xml 30 KB

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