You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

832 lines
32 KiB

  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, codename or release version. Examples: 'stable', 'testing', 'unstable', 'lenny', 'squeeze', '4.0', '5.0*'. 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. The <envar>http_proxy</envar> environment variable
  172. will override all settings.</para>
  173. <para>Three settings are provided for cache control with HTTP/1.1 compliant
  174. proxy caches. <literal>No-Cache</literal> tells the proxy to not use its cached
  175. response under any circumstances, <literal>Max-Age</literal> is sent only for
  176. index files and tells the cache to refresh its object if it is older than
  177. the given number of seconds. Debian updates its index files daily so the
  178. default is 1 day. <literal>No-Store</literal> specifies that the cache should never
  179. store this request, it is only set for archive files. This may be useful
  180. to prevent polluting a proxy cache with very large .deb files. Note:
  181. Squid 2.0.2 does not support any of these options.</para>
  182. <para>The option <literal>timeout</literal> sets the timeout timer used by the method,
  183. this applies to all things including connection timeout and data timeout.</para>
  184. <para>One setting is provided to control the pipeline depth in cases where the
  185. remote server is not RFC conforming or buggy (such as Squid 2.0.2)
  186. <literal>Acquire::http::Pipeline-Depth</literal> can be a value from 0 to 5
  187. indicating how many outstanding requests APT should send. A value of
  188. zero MUST be specified if the remote host does not properly linger
  189. on TCP connections - otherwise data corruption will occur. Hosts which
  190. require this are in violation of RFC 2068.</para></listitem>
  191. </varlistentry>
  192. <varlistentry><term>https</term>
  193. <listitem><para>HTTPS URIs. Cache-control and proxy options are the same as for
  194. <literal>http</literal> method.
  195. <literal>Pipeline-Depth</literal> option is not supported yet.</para>
  196. <para><literal>CaInfo</literal> suboption specifies place of file that
  197. holds info about trusted certificates.
  198. <literal>&lt;host&gt;::CaInfo</literal> is corresponding per-host option.
  199. <literal>Verify-Peer</literal> boolean suboption determines whether verify
  200. server's host certificate against trusted certificates or not.
  201. <literal>&lt;host&gt;::Verify-Peer</literal> is corresponding per-host option.
  202. <literal>Verify-Host</literal> boolean suboption determines whether verify
  203. server's hostname or not.
  204. <literal>&lt;host&gt;::Verify-Host</literal> is corresponding per-host option.
  205. <literal>SslCert</literal> determines what certificate to use for client
  206. authentication. <literal>&lt;host&gt;::SslCert</literal> is corresponding per-host option.
  207. <literal>SslKey</literal> determines what private key to use for client
  208. authentication. <literal>&lt;host&gt;::SslKey</literal> is corresponding per-host option.
  209. <literal>SslForceVersion</literal> overrides default SSL version to use.
  210. Can contain 'TLSv1' or 'SSLv3' string.
  211. <literal>&lt;host&gt;::SslForceVersion</literal> is corresponding per-host option.
  212. </para></listitem></varlistentry>
  213. <varlistentry><term>ftp</term>
  214. <listitem><para>FTP URIs; ftp::Proxy is the default proxy server to use. It is in the
  215. standard form of <literal>ftp://[[user][:pass]@]host[:port]/</literal> and is
  216. overridden by the <envar>ftp_proxy</envar> environment variable. To use a ftp
  217. proxy you will have to set the <literal>ftp::ProxyLogin</literal> script in the
  218. configuration file. This entry specifies the commands to send to tell
  219. the proxy server what to connect to. Please see
  220. &configureindex; for an example of
  221. how to do this. The substitution variables available are
  222. <literal>$(PROXY_USER)</literal> <literal>$(PROXY_PASS)</literal> <literal>$(SITE_USER)</literal>
  223. <literal>$(SITE_PASS)</literal> <literal>$(SITE)</literal> and <literal>$(SITE_PORT)</literal>
  224. Each is taken from it's respective URI component.</para>
  225. <para>The option <literal>timeout</literal> sets the timeout timer used by the method,
  226. this applies to all things including connection timeout and data timeout.</para>
  227. <para>Several settings are provided to control passive mode. Generally it is
  228. safe to leave passive mode on, it works in nearly every environment.
  229. However some situations require that passive mode be disabled and port
  230. mode ftp used instead. This can be done globally, for connections that
  231. go through a proxy or for a specific host (See the sample config file
  232. for examples).</para>
  233. <para>It is possible to proxy FTP over HTTP by setting the <envar>ftp_proxy</envar>
  234. environment variable to a http url - see the discussion of the http method
  235. above for syntax. You cannot set this in the configuration file and it is
  236. not recommended to use FTP over HTTP due to its low efficiency.</para>
  237. <para>The setting <literal>ForceExtended</literal> controls the use of RFC2428
  238. <literal>EPSV</literal> and <literal>EPRT</literal> commands. The default is false, which means
  239. these commands are only used if the control connection is IPv6. Setting this
  240. to true forces their use even on IPv4 connections. Note that most FTP servers
  241. do not support RFC2428.</para></listitem>
  242. </varlistentry>
  243. <varlistentry><term>cdrom</term>
  244. <listitem><para>CDROM URIs; the only setting for CDROM URIs is the mount point,
  245. <literal>cdrom::Mount</literal> which must be the mount point for the CDROM drive
  246. as specified in <filename>/etc/fstab</filename>. It is possible to provide
  247. alternate mount and unmount commands if your mount point cannot be listed
  248. in the fstab (such as an SMB mount and old mount packages). The syntax
  249. is to put <literallayout>"/cdrom/"::Mount "foo";</literallayout> within
  250. the cdrom block. It is important to have the trailing slash. Unmount
  251. commands can be specified using UMount.</para></listitem>
  252. </varlistentry>
  253. <varlistentry><term>gpgv</term>
  254. <listitem><para>GPGV URIs; the only option for GPGV URIs is the option to pass additional parameters to gpgv.
  255. <literal>gpgv::Options</literal> Additional options passed to gpgv.
  256. </para></listitem>
  257. </varlistentry>
  258. </variablelist>
  259. </para>
  260. </refsect1>
  261. <refsect1><title>Directories</title>
  262. <para>The <literal>Dir::State</literal> section has directories that pertain to local
  263. state information. <literal>lists</literal> is the directory to place downloaded
  264. package lists in and <literal>status</literal> is the name of the dpkg status file.
  265. <literal>preferences</literal> is the name of the APT preferences file.
  266. <literal>Dir::State</literal> contains the default directory to prefix on all sub
  267. items if they do not start with <filename>/</filename> or <filename>./</filename>.</para>
  268. <para><literal>Dir::Cache</literal> contains locations pertaining to local cache
  269. information, such as the two package caches <literal>srcpkgcache</literal> and
  270. <literal>pkgcache</literal> as well as the location to place downloaded archives,
  271. <literal>Dir::Cache::archives</literal>. Generation of caches can be turned off
  272. by setting their names to be blank. This will slow down startup but
  273. save disk space. It is probably preferred to turn off the pkgcache rather
  274. than the srcpkgcache. Like <literal>Dir::State</literal> the default
  275. directory is contained in <literal>Dir::Cache</literal></para>
  276. <para><literal>Dir::Etc</literal> contains the location of configuration files,
  277. <literal>sourcelist</literal> gives the location of the sourcelist and
  278. <literal>main</literal> is the default configuration file (setting has no effect,
  279. unless it is done from the config file specified by
  280. <envar>APT_CONFIG</envar>).</para>
  281. <para>The <literal>Dir::Parts</literal> setting reads in all the config fragments in
  282. lexical order from the directory specified. After this is done then the
  283. main config file is loaded.</para>
  284. <para>Binary programs are pointed to by <literal>Dir::Bin</literal>. <literal>Dir::Bin::Methods</literal>
  285. specifies the location of the method handlers and <literal>gzip</literal>,
  286. <literal>dpkg</literal>, <literal>apt-get</literal> <literal>dpkg-source</literal>
  287. <literal>dpkg-buildpackage</literal> and <literal>apt-cache</literal> specify the location
  288. of the respective programs.</para>
  289. <para>
  290. The configuration item <literal>RootDir</literal> has a special
  291. meaning. If set, all paths in <literal>Dir::</literal> will be
  292. relative to <literal>RootDir</literal>, <emphasis>even paths that
  293. are specified absolutely</emphasis>. So, for instance, if
  294. <literal>RootDir</literal> is set to
  295. <filename>/tmp/staging</filename> and
  296. <literal>Dir::State::status</literal> is set to
  297. <filename>/var/lib/dpkg/status</filename>, then the status file
  298. will be looked up in
  299. <filename>/tmp/staging/var/lib/dpkg/status</filename>.
  300. </para>
  301. </refsect1>
  302. <refsect1><title>APT in DSelect</title>
  303. <para>
  304. When APT is used as a &dselect; method several configuration directives
  305. control the default behaviour. These are in the <literal>DSelect</literal> section.</para>
  306. <variablelist>
  307. <varlistentry><term>Clean</term>
  308. <listitem><para>Cache Clean mode; this value may be one of always, prompt, auto,
  309. pre-auto and never. always and prompt will remove all packages from
  310. the cache after upgrading, prompt (the default) does so conditionally.
  311. auto removes only those packages which are no longer downloadable
  312. (replaced with a new version for instance). pre-auto performs this
  313. action before downloading new packages.</para></listitem>
  314. </varlistentry>
  315. <varlistentry><term>options</term>
  316. <listitem><para>The contents of this variable is passed to &apt-get; as command line
  317. options when it is run for the install phase.</para></listitem>
  318. </varlistentry>
  319. <varlistentry><term>Updateoptions</term>
  320. <listitem><para>The contents of this variable is passed to &apt-get; as command line
  321. options when it is run for the update phase.</para></listitem>
  322. </varlistentry>
  323. <varlistentry><term>PromptAfterUpdate</term>
  324. <listitem><para>If true the [U]pdate operation in &dselect; will always prompt to continue.
  325. The default is to prompt only on error.</para></listitem>
  326. </varlistentry>
  327. </variablelist>
  328. </refsect1>
  329. <refsect1><title>How APT calls dpkg</title>
  330. <para>Several configuration directives control how APT invokes &dpkg;. These are
  331. in the <literal>DPkg</literal> section.</para>
  332. <variablelist>
  333. <varlistentry><term>options</term>
  334. <listitem><para>This is a list of options to pass to dpkg. The options must be specified
  335. using the list notation and each list item is passed as a single argument
  336. to &dpkg;.</para></listitem>
  337. </varlistentry>
  338. <varlistentry><term>Pre-Invoke</term><term>Post-Invoke</term>
  339. <listitem><para>This is a list of shell commands to run before/after invoking &dpkg;.
  340. Like <literal>options</literal> this must be specified in list notation. The
  341. commands are invoked in order using <filename>/bin/sh</filename>, should any
  342. fail APT will abort.</para></listitem>
  343. </varlistentry>
  344. <varlistentry><term>Pre-Install-Pkgs</term>
  345. <listitem><para>This is a list of shell commands to run before invoking dpkg. Like
  346. <literal>options</literal> this must be specified in list notation. The commands
  347. are invoked in order using <filename>/bin/sh</filename>, should any fail APT
  348. will abort. APT will pass to the commands on standard input the
  349. filenames of all .deb files it is going to install, one per line.</para>
  350. <para>Version 2 of this protocol dumps more information, including the
  351. protocol version, the APT configuration space and the packages, files
  352. and versions being changed. Version 2 is enabled by setting
  353. <literal>DPkg::Tools::options::cmd::Version</literal> to 2. <literal>cmd</literal> is a
  354. command given to <literal>Pre-Install-Pkgs</literal>.</para></listitem>
  355. </varlistentry>
  356. <varlistentry><term>Run-Directory</term>
  357. <listitem><para>APT chdirs to this directory before invoking dpkg, the default is
  358. <filename>/</filename>.</para></listitem>
  359. </varlistentry>
  360. <varlistentry><term>Build-options</term>
  361. <listitem><para>These options are passed to &dpkg-buildpackage; when compiling packages,
  362. the default is to disable signing and produce all binaries.</para></listitem>
  363. </varlistentry>
  364. </variablelist>
  365. </refsect1>
  366. <refsect1>
  367. <title>Periodic and Archives options</title>
  368. <para><literal>APT::Periodic</literal> and <literal>APT::Archives</literal>
  369. groups of options configure behavior of apt periodic updates, which is
  370. done by <literal>/etc/cron.daily/apt</literal> script. See header of
  371. this script for the brief documentation of these options.
  372. </para>
  373. </refsect1>
  374. <refsect1>
  375. <title>Debug options</title>
  376. <para>
  377. Enabling options in the <literal>Debug::</literal> section will
  378. cause debugging information to be sent to the standard error
  379. stream of the program utilizing the <literal>apt</literal>
  380. libraries, or enable special program modes that are primarily
  381. useful for debugging the behavior of <literal>apt</literal>.
  382. Most of these options are not interesting to a normal user, but a
  383. few may be:
  384. <itemizedlist>
  385. <listitem>
  386. <para>
  387. <literal>Debug::pkgProblemResolver</literal> enables output
  388. about the decisions made by
  389. <literal>dist-upgrade, upgrade, install, remove, purge</literal>.
  390. </para>
  391. </listitem>
  392. <listitem>
  393. <para>
  394. <literal>Debug::NoLocking</literal> disables all file
  395. locking. This can be used to run some operations (for
  396. instance, <literal>apt-get -s install</literal>) as a
  397. non-root user.
  398. </para>
  399. </listitem>
  400. <listitem>
  401. <para>
  402. <literal>Debug::pkgDPkgPM</literal> prints out the actual
  403. command line each time that <literal>apt</literal> invokes
  404. &dpkg;.
  405. </para>
  406. </listitem>
  407. <listitem>
  408. <para>
  409. <literal>Debug::IdentCdrom</literal> disables the inclusion
  410. of statfs data in CDROM IDs. <!-- TODO: provide a
  411. motivating example, except I haven't a clue why you'd want
  412. to do this. -->
  413. </para>
  414. </listitem>
  415. </itemizedlist>
  416. </para>
  417. <para>
  418. A full list of debugging options to apt follows.
  419. </para>
  420. <variablelist>
  421. <varlistentry>
  422. <term><literal>Debug::Acquire::cdrom</literal></term>
  423. <listitem>
  424. <para>
  425. Print information related to accessing
  426. <literal>cdrom://</literal> sources.
  427. </para>
  428. </listitem>
  429. </varlistentry>
  430. <varlistentry>
  431. <term><literal>Debug::Acquire::ftp</literal></term>
  432. <listitem>
  433. <para>
  434. Print information related to downloading packages using
  435. FTP.
  436. </para>
  437. </listitem>
  438. </varlistentry>
  439. <varlistentry>
  440. <term><literal>Debug::Acquire::http</literal></term>
  441. <listitem>
  442. <para>
  443. Print information related to downloading packages using
  444. HTTP.
  445. </para>
  446. </listitem>
  447. </varlistentry>
  448. <varlistentry>
  449. <term><literal>Debug::Acquire::https</literal></term>
  450. <listitem>
  451. <para>
  452. Print information related to downloading packages using
  453. HTTPS.
  454. </para>
  455. </listitem>
  456. </varlistentry>
  457. <varlistentry>
  458. <term><literal>Debug::Acquire::gpgv</literal></term>
  459. <listitem>
  460. <para>
  461. Print information related to verifying cryptographic
  462. signatures using <literal>gpg</literal>.
  463. </para>
  464. </listitem>
  465. </varlistentry>
  466. <varlistentry>
  467. <term><literal>Debug::aptcdrom</literal></term>
  468. <listitem>
  469. <para>
  470. Output information about the process of accessing
  471. collections of packages stored on CD-ROMs.
  472. </para>
  473. </listitem>
  474. </varlistentry>
  475. <varlistentry>
  476. <term><literal>Debug::BuildDeps</literal></term>
  477. <listitem>
  478. <para>
  479. Describes the process of resolving build-dependencies in
  480. &apt-get;.
  481. </para>
  482. </listitem>
  483. </varlistentry>
  484. <varlistentry>
  485. <term><literal>Debug::Hashes</literal></term>
  486. <listitem>
  487. <para>
  488. Output each cryptographic hash that is generated by the
  489. <literal>apt</literal> libraries.
  490. </para>
  491. </listitem>
  492. </varlistentry>
  493. <varlistentry>
  494. <term><literal>Debug::IdentCDROM</literal></term>
  495. <listitem>
  496. <para>
  497. Do not include information from <literal>statfs</literal>,
  498. namely the number of used and free blocks on the CD-ROM
  499. filesystem, when generating an ID for a CD-ROM.
  500. </para>
  501. </listitem>
  502. </varlistentry>
  503. <varlistentry>
  504. <term><literal>Debug::NoLocking</literal></term>
  505. <listitem>
  506. <para>
  507. Disable all file locking. For instance, this will allow
  508. two instances of <quote><literal>apt-get
  509. update</literal></quote> to run at the same time.
  510. </para>
  511. </listitem>
  512. </varlistentry>
  513. <varlistentry>
  514. <term><literal>Debug::pkgAcquire</literal></term>
  515. <listitem>
  516. <para>
  517. Log when items are added to or removed from the global
  518. download queue.
  519. </para>
  520. </listitem>
  521. </varlistentry>
  522. <varlistentry>
  523. <term><literal>Debug::pkgAcquire::Auth</literal></term>
  524. <listitem>
  525. <para>
  526. Output status messages and errors related to verifying
  527. checksums and cryptographic signatures of downloaded files.
  528. </para>
  529. </listitem>
  530. </varlistentry>
  531. <varlistentry>
  532. <term><literal>Debug::pkgAcquire::Diffs</literal></term>
  533. <listitem>
  534. <para>
  535. Output information about downloading and applying package
  536. index list diffs, and errors relating to package index list
  537. diffs.
  538. </para>
  539. </listitem>
  540. </varlistentry>
  541. <varlistentry>
  542. <term><literal>Debug::pkgAcquire::RRed</literal></term>
  543. <listitem>
  544. <para>
  545. Output information related to patching apt package lists
  546. when downloading index diffs instead of full indices.
  547. </para>
  548. </listitem>
  549. </varlistentry>
  550. <varlistentry>
  551. <term><literal>Debug::pkgAcquire::Worker</literal></term>
  552. <listitem>
  553. <para>
  554. Log all interactions with the sub-processes that actually
  555. perform downloads.
  556. </para>
  557. </listitem>
  558. </varlistentry>
  559. <varlistentry>
  560. <term><literal>Debug::pkgAutoRemove</literal></term>
  561. <listitem>
  562. <para>
  563. Log events related to the automatically-installed status of
  564. packages and to the removal of unused packages.
  565. </para>
  566. </listitem>
  567. </varlistentry>
  568. <varlistentry>
  569. <term><literal>Debug::pkgDepCache::AutoInstall</literal></term>
  570. <listitem>
  571. <para>
  572. Generate debug messages describing which packages are being
  573. automatically installed to resolve dependencies. This
  574. corresponds to the initial auto-install pass performed in,
  575. e.g., <literal>apt-get install</literal>, and not to the
  576. full <literal>apt</literal> dependency resolver; see
  577. <literal>Debug::pkgProblemResolver</literal> for that.
  578. </para>
  579. </listitem>
  580. </varlistentry>
  581. <varlistentry>
  582. <term><literal>Debug::pkgDepCache::Marker</literal></term>
  583. <listitem>
  584. <para>
  585. Generate debug messages describing which package is marked
  586. as keep/install/remove while the ProblemResolver does his work.
  587. Each addition or deletion may trigger additional actions;
  588. they are shown indented two additional space under the original entry.
  589. The format for each line is <literal>MarkKeep</literal>,
  590. <literal>MarkDelete</literal> or <literal>MarkInstall</literal> followed by
  591. <literal>package-name &lt;a.b.c -&gt; d.e.f | x.y.z&gt; (section)</literal>
  592. where <literal>a.b.c</literal> is the current version of the package,
  593. <literal>d.e.f</literal> is the version considered for installation and
  594. <literal>x.y.z</literal> is a newer version, but not considered for installation
  595. (because of a low pin score). The later two can be omitted if there is none or if
  596. it is the same version as the installed.
  597. <literal>section</literal> is the name of the section the package appears in.
  598. </para>
  599. </listitem>
  600. </varlistentry>
  601. <!-- Question: why doesn't this do anything? The code says it should. -->
  602. <varlistentry>
  603. <term><literal>Debug::pkgInitConfig</literal></term>
  604. <listitem>
  605. <para>
  606. Dump the default configuration to standard output on
  607. startup.
  608. </para>
  609. </listitem>
  610. </varlistentry>
  611. <varlistentry>
  612. <term><literal>Debug::pkgDPkgPM</literal></term>
  613. <listitem>
  614. <para>
  615. When invoking &dpkg;, output the precise command line with
  616. which it is being invoked, with arguments separated by a
  617. single space character.
  618. </para>
  619. </listitem>
  620. </varlistentry>
  621. <varlistentry>
  622. <term><literal>Debug::pkgDPkgProgressReporting</literal></term>
  623. <listitem>
  624. <para>
  625. Output all the data received from &dpkg; on the status file
  626. descriptor and any errors encountered while parsing it.
  627. </para>
  628. </listitem>
  629. </varlistentry>
  630. <varlistentry>
  631. <term><literal>Debug::pkgOrderList</literal></term>
  632. <listitem>
  633. <para>
  634. Generate a trace of the algorithm that decides the order in
  635. which <literal>apt</literal> should pass packages to
  636. &dpkg;.
  637. </para>
  638. </listitem>
  639. </varlistentry>
  640. <varlistentry>
  641. <term><literal>Debug::pkgPackageManager</literal></term>
  642. <listitem>
  643. <para>
  644. Output status messages tracing the steps performed when
  645. invoking &dpkg;.
  646. </para>
  647. </listitem>
  648. </varlistentry>
  649. <varlistentry>
  650. <term><literal>Debug::pkgPolicy</literal></term>
  651. <listitem>
  652. <para>
  653. Output the priority of each package list on startup.
  654. </para>
  655. </listitem>
  656. </varlistentry>
  657. <varlistentry>
  658. <term><literal>Debug::pkgProblemResolver</literal></term>
  659. <listitem>
  660. <para>
  661. Trace the execution of the dependency resolver (this
  662. applies only to what happens when a complex dependency
  663. problem is encountered).
  664. </para>
  665. </listitem>
  666. </varlistentry>
  667. <varlistentry>
  668. <term><literal>Debug::pkgProblemResolver::ShowScores</literal></term>
  669. <listitem>
  670. <para>
  671. Display a list of all installed packages with their calculated score
  672. used by the pkgProblemResolver. The description of the package
  673. is the same as described in <literal>Debug::pkgDepCache::Marker</literal>
  674. </para>
  675. </listitem>
  676. </varlistentry>
  677. <varlistentry>
  678. <term><literal>Debug::sourceList</literal></term>
  679. <listitem>
  680. <para>
  681. Print information about the vendors read from
  682. <filename>/etc/apt/vendors.list</filename>.
  683. </para>
  684. </listitem>
  685. </varlistentry>
  686. <varlistentry>
  687. <term><literal>Debug::Vendor</literal></term>
  688. <listitem>
  689. <para>
  690. Print information about each vendor.
  691. </para>
  692. </listitem>
  693. </varlistentry>
  694. </variablelist>
  695. </refsect1>
  696. <refsect1><title>Examples</title>
  697. <para>&configureindex; is a
  698. configuration file showing example values for all possible
  699. options.</para>
  700. </refsect1>
  701. <refsect1><title>Files</title>
  702. <para><filename>/etc/apt/apt.conf</filename></para>
  703. </refsect1>
  704. <refsect1><title>See Also</title>
  705. <para>&apt-cache;, &apt-config;<!-- ? reading apt.conf -->, &apt-preferences;.</para>
  706. </refsect1>
  707. &manbugs;
  708. </refentry>