apt-ftparchive.1.xml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
  4. <!ENTITY % aptent SYSTEM "apt.ent">
  5. %aptent;
  6. ]>
  7. <refentry>
  8. <refentryinfo>
  9. &apt-author.jgunthorpe;
  10. &apt-author.team;
  11. &apt-email;
  12. &apt-product;
  13. <!-- The last update date -->
  14. <date>17 August 2009</date>
  15. </refentryinfo>
  16. <refmeta>
  17. <refentrytitle>apt-ftparchive</refentrytitle>
  18. <manvolnum>1</manvolnum>
  19. <refmiscinfo class="manual">APT</refmiscinfo>
  20. </refmeta>
  21. <!-- Man page title -->
  22. <refnamediv>
  23. <refname>apt-ftparchive</refname>
  24. <refpurpose>Utility to generate index files</refpurpose>
  25. </refnamediv>
  26. <!-- Arguments -->
  27. <refsynopsisdiv>
  28. <cmdsynopsis>
  29. <command>apt-ftparchive</command>
  30. <arg><option>-hvdsq</option></arg>
  31. <arg><option>--md5</option></arg>
  32. <arg><option>--delink</option></arg>
  33. <arg><option>--readonly</option></arg>
  34. <arg><option>--contents</option></arg>
  35. <arg><option>-o <replaceable>config</replaceable>=<replaceable>string</replaceable></option></arg>
  36. <arg><option>-c=<replaceable>file</replaceable></option></arg>
  37. <group choice="req">
  38. <arg>packages<arg choice="plain" rep="repeat"><replaceable>path</replaceable></arg><arg><replaceable>override</replaceable><arg><replaceable>pathprefix</replaceable></arg></arg></arg>
  39. <arg>sources<arg choice="plain" rep="repeat"><replaceable>path</replaceable></arg><arg><replaceable>override</replaceable><arg><replaceable>pathprefix</replaceable></arg></arg></arg>
  40. <arg>contents <arg choice="plain"><replaceable>path</replaceable></arg></arg>
  41. <arg>release <arg choice="plain"><replaceable>path</replaceable></arg></arg>
  42. <arg>generate <arg choice="plain"><replaceable>config-file</replaceable></arg> <arg choice="plain" rep="repeat"><replaceable>section</replaceable></arg></arg>
  43. <arg>clean <arg choice="plain"><replaceable>config-file</replaceable></arg></arg>
  44. </group>
  45. </cmdsynopsis>
  46. </refsynopsisdiv>
  47. <refsect1><title>Description</title>
  48. <para><command>apt-ftparchive</command> is the command line tool that generates the index
  49. files that APT uses to access a distribution source. The index files should
  50. be generated on the origin site based on the content of that site.</para>
  51. <para><command>apt-ftparchive</command> is a superset of the &dpkg-scanpackages; program,
  52. incorporating its entire functionality via the <literal>packages</literal> command.
  53. It also contains a contents file generator, <literal>contents</literal>, and an
  54. elaborate means to 'script' the generation process for a complete
  55. archive.</para>
  56. <para>Internally <command>apt-ftparchive</command> can make use of binary databases to
  57. cache the contents of a .deb file and it does not rely on any external
  58. programs aside from &gzip;. When doing a full generate it automatically
  59. performs file-change checks and builds the desired compressed output files.</para>
  60. <para>Unless the <option>-h</option>, or <option>--help</option> option is given one of the
  61. commands below must be present.</para>
  62. <variablelist>
  63. <varlistentry><term>packages</term>
  64. <listitem><para>
  65. The packages command generates a package file from a directory tree. It
  66. takes the given directory and recursively searches it for .deb files,
  67. emitting a package record to stdout for each. This command is
  68. approximately equivalent to &dpkg-scanpackages;.</para>
  69. <para>The option <option>--db</option> can be used to specify a binary caching DB.</para></listitem>
  70. </varlistentry>
  71. <varlistentry><term>sources</term>
  72. <listitem><para>
  73. The <literal>sources</literal> command generates a source index file from a directory tree.
  74. It takes the given directory and recursively searches it for .dsc files,
  75. emitting a source record to stdout for each. This command is approximately
  76. equivalent to &dpkg-scansources;.</para>
  77. <para>
  78. If an override file is specified then a source override file will be
  79. looked for with an extension of .src. The --source-override option can be
  80. used to change the source override file that will be used.</para></listitem>
  81. </varlistentry>
  82. <varlistentry><term>contents</term>
  83. <listitem><para>
  84. The <literal>contents</literal> command generates a contents file from a directory tree. It
  85. takes the given directory and recursively searches it for .deb files,
  86. and reads the file list from each file. It then sorts and writes to stdout
  87. the list of files matched to packages. Directories are not written to
  88. the output. If multiple packages own the same file then each package is
  89. separated by a comma in the output.</para>
  90. <para>
  91. The option <option>--db</option> can be used to specify a binary caching DB.</para></listitem>
  92. </varlistentry>
  93. <varlistentry><term>release</term>
  94. <listitem><para>
  95. The <literal>release</literal> command generates a Release file from a
  96. directory tree. It recursively searches the given directory for
  97. Packages, Packages.gz, Packages.bz2, Sources, Sources.gz,
  98. Sources.bz2, Release and md5sum.txt files. It then writes to
  99. stdout a Release file containing an MD5 digest and SHA1 digest
  100. for each file.</para>
  101. <para>
  102. Values for the additional metadata fields in the Release file are
  103. taken from the corresponding variables under
  104. <literal>APT::FTPArchive::Release</literal>,
  105. e.g. <literal>APT::FTPArchive::Release::Origin</literal>. The supported fields
  106. are: <literal>Origin</literal>, <literal>Label</literal>, <literal>Suite</literal>,
  107. <literal>Version</literal>, <literal>Codename</literal>, <literal>Date</literal>,
  108. <literal>Architectures</literal>, <literal>Components</literal>, <literal>Description</literal>.</para></listitem>
  109. </varlistentry>
  110. <varlistentry><term>generate</term>
  111. <listitem><para>
  112. The <literal>generate</literal> command is designed to be runnable from a cron script and
  113. builds indexes according to the given config file. The config language
  114. provides a flexible means of specifying which index files are built from
  115. which directories, as well as providing a simple means of maintaining the
  116. required settings.</para></listitem>
  117. </varlistentry>
  118. <varlistentry><term>clean</term>
  119. <listitem><para>
  120. The <literal>clean</literal> command tidies the databases used by the given
  121. configuration file by removing any records that are no longer necessary.</para></listitem>
  122. </varlistentry>
  123. </variablelist>
  124. </refsect1>
  125. <refsect1><title>The Generate Configuration</title>
  126. <para>
  127. The <literal>generate</literal> command uses a configuration file to describe the
  128. archives that are going to be generated. It follows the typical ISC
  129. configuration format as seen in ISC tools like bind 8 and dhcpd.
  130. &apt-conf; contains a description of the syntax. Note that the generate
  131. configuration is parsed in sectional manner, but &apt-conf; is parsed in a
  132. tree manner. This only effects how the scope tag is handled.</para>
  133. <para>
  134. The generate configuration has 4 separate sections, each described below.</para>
  135. <refsect2><title>Dir Section</title>
  136. <para>
  137. The <literal>Dir</literal> section defines the standard directories needed to
  138. locate the files required during the generation process. These
  139. directories are prepended certain relative paths defined in later
  140. sections to produce a complete an absolute path.</para>
  141. <variablelist>
  142. <varlistentry><term>ArchiveDir</term>
  143. <listitem><para>
  144. Specifies the root of the FTP archive, in a standard
  145. Debian configuration this is the directory that contains the
  146. <filename>ls-LR</filename> and dist nodes.</para></listitem>
  147. </varlistentry>
  148. <varlistentry><term>OverrideDir</term>
  149. <listitem><para>
  150. Specifies the location of the override files.</para></listitem>
  151. </varlistentry>
  152. <varlistentry><term>CacheDir</term>
  153. <listitem><para>
  154. Specifies the location of the cache files</para></listitem>
  155. </varlistentry>
  156. <varlistentry><term>FileListDir</term>
  157. <listitem><para>
  158. Specifies the location of the file list files,
  159. if the <literal>FileList</literal> setting is used below.</para></listitem>
  160. </varlistentry>
  161. </variablelist>
  162. </refsect2>
  163. <refsect2><title>Default Section</title>
  164. <para>
  165. The <literal>Default</literal> section specifies default values, and settings
  166. that control the operation of the generator. Other sections may override
  167. these defaults with a per-section setting.</para>
  168. <variablelist>
  169. <varlistentry><term>Packages::Compress</term>
  170. <listitem><para>
  171. Sets the default compression schemes to use
  172. for the Package index files. It is a string that contains a space
  173. separated list of at least one of: '.' (no compression), 'gzip' and
  174. 'bzip2'. The default for all compression schemes is '. gzip'.</para></listitem>
  175. </varlistentry>
  176. <varlistentry><term>Packages::Extensions</term>
  177. <listitem><para>
  178. Sets the default list of file extensions that are package files.
  179. This defaults to '.deb'.</para></listitem>
  180. </varlistentry>
  181. <varlistentry><term>Sources::Compress</term>
  182. <listitem><para>
  183. This is similar to <literal>Packages::Compress</literal>
  184. except that it controls the compression for the Sources files.</para></listitem>
  185. </varlistentry>
  186. <varlistentry><term>Sources::Extensions</term>
  187. <listitem><para>
  188. Sets the default list of file extensions that are source files.
  189. This defaults to '.dsc'.</para></listitem>
  190. </varlistentry>
  191. <varlistentry><term>Contents::Compress</term>
  192. <listitem><para>
  193. This is similar to <literal>Packages::Compress</literal>
  194. except that it controls the compression for the Contents files.</para></listitem>
  195. </varlistentry>
  196. <varlistentry><term>DeLinkLimit</term>
  197. <listitem><para>
  198. Specifies the number of kilobytes to delink (and
  199. replace with hard links) per run. This is used in conjunction with the
  200. per-section <literal>External-Links</literal> setting.</para></listitem>
  201. </varlistentry>
  202. <varlistentry><term>FileMode</term>
  203. <listitem><para>
  204. Specifies the mode of all created index files. It
  205. defaults to 0644. All index files are set to this mode with no regard
  206. to the umask.</para></listitem>
  207. </varlistentry>
  208. </variablelist>
  209. </refsect2>
  210. <refsect2><title>TreeDefault Section</title>
  211. <para>
  212. Sets defaults specific to <literal>Tree</literal> sections. All of these
  213. variables are substitution variables and have the strings $(DIST),
  214. $(SECTION) and $(ARCH) replaced with their respective values.</para>
  215. <variablelist>
  216. <varlistentry><term>MaxContentsChange</term>
  217. <listitem><para>
  218. Sets the number of kilobytes of contents
  219. files that are generated each day. The contents files are round-robined
  220. so that over several days they will all be rebuilt.</para></listitem>
  221. </varlistentry>
  222. <varlistentry><term>ContentsAge</term>
  223. <listitem><para>
  224. Controls the number of days a contents file is allowed
  225. to be checked without changing. If this limit is passed the mtime of the
  226. contents file is updated. This case can occur if the package file is
  227. changed in such a way that does not result in a new contents file
  228. [override edit for instance]. A hold off is allowed in hopes that new
  229. .debs will be installed, requiring a new file anyhow. The default is 10,
  230. the units are in days.</para></listitem>
  231. </varlistentry>
  232. <varlistentry><term>Directory</term>
  233. <listitem><para>
  234. Sets the top of the .deb directory tree. Defaults to
  235. <filename>$(DIST)/$(SECTION)/binary-$(ARCH)/</filename></para></listitem>
  236. </varlistentry>
  237. <varlistentry><term>SrcDirectory</term>
  238. <listitem><para>
  239. Sets the top of the source package directory tree. Defaults to
  240. <filename>$(DIST)/$(SECTION)/source/</filename></para></listitem>
  241. </varlistentry>
  242. <varlistentry><term>Packages</term>
  243. <listitem><para>
  244. Sets the output Packages file. Defaults to
  245. <filename>$(DIST)/$(SECTION)/binary-$(ARCH)/Packages</filename></para></listitem>
  246. </varlistentry>
  247. <varlistentry><term>Sources</term>
  248. <listitem><para>
  249. Sets the output Packages file. Defaults to
  250. <filename>$(DIST)/$(SECTION)/source/Sources</filename></para></listitem>
  251. </varlistentry>
  252. <varlistentry><term>InternalPrefix</term>
  253. <listitem><para>
  254. Sets the path prefix that causes a symlink to be
  255. considered an internal link instead of an external link. Defaults to
  256. <filename>$(DIST)/$(SECTION)/</filename></para></listitem>
  257. </varlistentry>
  258. <varlistentry><term>Contents</term>
  259. <listitem><para>
  260. Sets the output Contents file. Defaults to
  261. <filename>$(DIST)/Contents-$(ARCH)</filename>. If this setting causes multiple
  262. Packages files to map onto a single Contents file (such as the default)
  263. then <command>apt-ftparchive</command> will integrate those package files
  264. together automatically.</para></listitem>
  265. </varlistentry>
  266. <varlistentry><term>Contents::Header</term>
  267. <listitem><para>
  268. Sets header file to prepend to the contents output.</para></listitem>
  269. </varlistentry>
  270. <varlistentry><term>BinCacheDB</term>
  271. <listitem><para>
  272. Sets the binary cache database to use for this
  273. section. Multiple sections can share the same database.</para></listitem>
  274. </varlistentry>
  275. <varlistentry><term>FileList</term>
  276. <listitem><para>
  277. Specifies that instead of walking the directory tree,
  278. <command>apt-ftparchive</command> should read the list of files from the given
  279. file. Relative files names are prefixed with the archive directory.</para></listitem>
  280. </varlistentry>
  281. <varlistentry><term>SourceFileList</term>
  282. <listitem><para>
  283. Specifies that instead of walking the directory tree,
  284. <command>apt-ftparchive</command> should read the list of files from the given
  285. file. Relative files names are prefixed with the archive directory.
  286. This is used when processing source indexes.</para></listitem>
  287. </varlistentry>
  288. </variablelist>
  289. </refsect2>
  290. <refsect2><title>Tree Section</title>
  291. <para>
  292. The <literal>Tree</literal> section defines a standard Debian file tree which
  293. consists of a base directory, then multiple sections in that base
  294. directory and finally multiple Architectures in each section. The exact
  295. pathing used is defined by the <literal>Directory</literal> substitution variable.</para>
  296. <para>
  297. The <literal>Tree</literal> section takes a scope tag which sets the
  298. <literal>$(DIST)</literal> variable and defines the root of the tree
  299. (the path is prefixed by <literal>ArchiveDir</literal>).
  300. Typically this is a setting such as <filename>dists/woody</filename>.</para>
  301. <para>
  302. All of the settings defined in the <literal>TreeDefault</literal> section can be
  303. use in a <literal>Tree</literal> section as well as three new variables.</para>
  304. <para>
  305. When processing a <literal>Tree</literal> section <command>apt-ftparchive</command>
  306. performs an operation similar to:
  307. <informalexample><programlisting>
  308. for i in Sections do
  309. for j in Architectures do
  310. Generate for DIST=scope SECTION=i ARCH=j
  311. </programlisting></informalexample></para>
  312. <variablelist>
  313. <varlistentry><term>Sections</term>
  314. <listitem><para>
  315. This is a space separated list of sections which appear
  316. under the distribution, typically this is something like
  317. <literal>main contrib non-free</literal></para></listitem>
  318. </varlistentry>
  319. <varlistentry><term>Architectures</term>
  320. <listitem><para>
  321. This is a space separated list of all the
  322. architectures that appear under search section. The special architecture
  323. 'source' is used to indicate that this tree has a source archive.</para></listitem>
  324. </varlistentry>
  325. <varlistentry><term>BinOverride</term>
  326. <listitem><para>
  327. Sets the binary override file. The override file
  328. contains section, priority and maintainer address information.</para></listitem>
  329. </varlistentry>
  330. <varlistentry><term>SrcOverride</term>
  331. <listitem><para>
  332. Sets the source override file. The override file
  333. contains section information.</para></listitem>
  334. </varlistentry>
  335. <varlistentry><term>ExtraOverride</term>
  336. <listitem><para>
  337. Sets the binary extra override file.</para></listitem>
  338. </varlistentry>
  339. <varlistentry><term>SrcExtraOverride</term>
  340. <listitem><para>
  341. Sets the source extra override file.</para></listitem>
  342. </varlistentry>
  343. </variablelist>
  344. </refsect2>
  345. <refsect2><title>BinDirectory Section</title>
  346. <para>
  347. The <literal>bindirectory</literal> section defines a binary directory tree
  348. with no special structure. The scope tag specifies the location of
  349. the binary directory and the settings are similar to the <literal>Tree</literal>
  350. section with no substitution variables or
  351. <literal>Section</literal><literal>Architecture</literal> settings.</para>
  352. <variablelist>
  353. <varlistentry><term>Packages</term>
  354. <listitem><para>
  355. Sets the Packages file output.</para></listitem>
  356. </varlistentry>
  357. <varlistentry><term>Sources</term>
  358. <listitem><para>
  359. Sets the Sources file output. At least one of
  360. <literal>Packages</literal> or <literal>Sources</literal> is required.</para></listitem>
  361. </varlistentry>
  362. <varlistentry><term>Contents</term>
  363. <listitem><para>
  364. Sets the Contents file output. (optional)</para></listitem>
  365. </varlistentry>
  366. <varlistentry><term>BinOverride</term>
  367. <listitem><para>
  368. Sets the binary override file.</para></listitem>
  369. </varlistentry>
  370. <varlistentry><term>SrcOverride</term>
  371. <listitem><para>
  372. Sets the source override file.</para></listitem>
  373. </varlistentry>
  374. <varlistentry><term>ExtraOverride</term>
  375. <listitem><para>
  376. Sets the binary extra override file.</para></listitem>
  377. </varlistentry>
  378. <varlistentry><term>SrcExtraOverride</term>
  379. <listitem><para>
  380. Sets the source extra override file.</para></listitem>
  381. </varlistentry>
  382. <varlistentry><term>BinCacheDB</term>
  383. <listitem><para>
  384. Sets the cache DB.</para></listitem>
  385. </varlistentry>
  386. <varlistentry><term>PathPrefix</term>
  387. <listitem><para>
  388. Appends a path to all the output paths.</para></listitem>
  389. </varlistentry>
  390. <varlistentry><term>FileList, SourceFileList</term>
  391. <listitem><para>
  392. Specifies the file list file.</para></listitem>
  393. </varlistentry>
  394. </variablelist>
  395. </refsect2>
  396. </refsect1>
  397. <refsect1><title>The Binary Override File</title>
  398. <para>The binary override file is fully compatible with &dpkg-scanpackages;. It
  399. contains 4 fields separated by spaces. The first field is the package name,
  400. the second is the priority to force that package to, the third is the
  401. the section to force that package to and the final field is the maintainer
  402. permutation field.</para>
  403. <para>The general form of the maintainer field is:
  404. <literallayout>old [// oldn]* => new</literallayout>
  405. or simply,
  406. <literallayout>new</literallayout>
  407. The first form allows a double-slash separated list of old email addresses
  408. to be specified. If any of those are found then new is substituted for the
  409. maintainer field. The second form unconditionally substitutes the
  410. maintainer field.</para>
  411. </refsect1>
  412. <refsect1><title>The Source Override File</title>
  413. <para>
  414. The source override file is fully compatible with &dpkg-scansources;. It
  415. contains 2 fields separated by spaces. The first fields is the source
  416. package name, the second is the section to assign it.</para>
  417. </refsect1>
  418. <refsect1><title>The Extra Override File</title>
  419. <para>
  420. The extra override file allows any arbitrary tag to be added or replaced
  421. in the output. It has 3 columns, the first is the package, the second is
  422. the tag and the remainder of the line is the new value.</para>
  423. </refsect1>
  424. <refsect1><title>options</title>
  425. &apt-cmdblurb;
  426. <variablelist>
  427. <varlistentry><term><option>--md5</option></term>
  428. <listitem><para>
  429. Generate MD5 sums. This defaults to on, when turned off the generated
  430. index files will not have MD5Sum fields where possible.
  431. Configuration Item: <literal>APT::FTPArchive::MD5</literal></para></listitem>
  432. </varlistentry>
  433. <varlistentry><term><option>-d</option></term><term><option>--db</option></term>
  434. <listitem><para>
  435. Use a binary caching DB. This has no effect on the generate command.
  436. Configuration Item: <literal>APT::FTPArchive::DB</literal>.</para></listitem>
  437. </varlistentry>
  438. <varlistentry><term><option>-q</option></term><term><option>--quiet</option></term>
  439. <listitem><para>
  440. Quiet; produces output suitable for logging, omitting progress indicators.
  441. More q's will produce more quiet up to a maximum of 2. You can also use
  442. <option>-q=#</option> to set the quiet level, overriding the configuration file.
  443. Configuration Item: <literal>quiet</literal>.</para></listitem>
  444. </varlistentry>
  445. <varlistentry><term><option>--delink</option></term>
  446. <listitem><para>
  447. Perform Delinking. If the <literal>External-Links</literal> setting is used then
  448. this option actually enables delinking of the files. It defaults to on and
  449. can be turned off with <option>--no-delink</option>.
  450. Configuration Item: <literal>APT::FTPArchive::DeLinkAct</literal>.</para></listitem>
  451. </varlistentry>
  452. <varlistentry><term><option>--contents</option></term>
  453. <listitem><para>
  454. Perform contents generation. When this option is set and package indexes
  455. are being generated with a cache DB then the file listing will also be
  456. extracted and stored in the DB for later use. When using the generate
  457. command this option also allows the creation of any Contents files. The
  458. default is on.
  459. Configuration Item: <literal>APT::FTPArchive::Contents</literal>.</para></listitem>
  460. </varlistentry>
  461. <varlistentry><term><option>-s</option></term><term><option>--source-override</option></term>
  462. <listitem><para>
  463. Select the source override file to use with the <literal>sources</literal> command.
  464. Configuration Item: <literal>APT::FTPArchive::SourceOverride</literal>.</para></listitem>
  465. </varlistentry>
  466. <varlistentry><term><option>--readonly</option></term>
  467. <listitem><para>
  468. Make the caching databases read only.
  469. Configuration Item: <literal>APT::FTPArchive::ReadOnlyDB</literal>.</para></listitem>
  470. </varlistentry>
  471. <varlistentry><term><option>APT::FTPArchive::AlwaysStat</option></term>
  472. <listitem><para>
  473. &apt-ftparchive; caches as much as possible of metadata in it is cachedb. If packages
  474. are recompiled and/or republished with the same version again, this will lead to problems
  475. as the now outdated cached metadata like size and checksums will be used. With this option
  476. enabled this will no longer happen as it will be checked if the file was changed.
  477. Note that this option is set to "<literal>false</literal>" by default as it is not recommend
  478. to upload multiply versions/builds of a package with the same versionnumber, so in theory
  479. nobody will have these problems and therefore all these extra checks are useless.
  480. </para></listitem>
  481. </varlistentry>
  482. <varlistentry><term><option>APT::FTPArchive::LongDescription</option></term>
  483. <listitem><para>
  484. This configuration option defaults to "<literal>true</literal>" and should only be set to
  485. <literal>"false"</literal> if the Archive generated with &apt-ftparchive; also provides
  486. <filename>Translation</filename> files. Note that it is currently not possible to create these
  487. files with <command>apt-ftparchive</command>.
  488. </para></listitem>
  489. </varlistentry>
  490. &apt-commonoptions;
  491. </variablelist>
  492. </refsect1>
  493. <refsect1><title>Examples</title>
  494. <para>To create a compressed Packages file for a directory containing
  495. binary packages (.deb):
  496. <programlisting>
  497. <command>apt-ftparchive</command> packages <replaceable>directory</replaceable> | <command>gzip</command> > <filename>Packages.gz</filename>
  498. </programlisting></para>
  499. </refsect1>
  500. <refsect1><title>See Also</title>
  501. <para>&apt-conf;</para>
  502. </refsect1>
  503. <refsect1><title>Diagnostics</title>
  504. <para><command>apt-ftparchive</command> returns zero on normal operation, decimal 100 on error.</para>
  505. </refsect1>
  506. &manbugs;
  507. </refentry>