apt.conf.5.xml 56 KB

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