apt.conf.5.xml 57 KB

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