apt-extracttemplates.1.xml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. <!ENTITY % aptverbatiment SYSTEM "apt-verbatim.ent">
  7. %aptverbatiment;
  8. ]>
  9. <refentry>
  10. <refentryinfo>
  11. &apt-author.jgunthorpe;
  12. &apt-author.team;
  13. &apt-email;
  14. &apt-product;
  15. <!-- The last update date -->
  16. <date>29 February 2004</date>
  17. </refentryinfo>
  18. <refmeta>
  19. <refentrytitle>apt-extracttemplates</refentrytitle>
  20. <manvolnum>1</manvolnum>
  21. <refmiscinfo class="manual">APT</refmiscinfo>
  22. </refmeta>
  23. <!-- Man page title -->
  24. <refnamediv>
  25. <refname>apt-extracttemplates</refname>
  26. <refpurpose>Utility to extract DebConf config and templates from Debian packages</refpurpose>
  27. </refnamediv>
  28. <!-- Arguments -->
  29. <refsynopsisdiv>
  30. <cmdsynopsis>
  31. <command>apt-extracttemplates</command>
  32. <arg><option>-hv</option></arg>
  33. <arg><option>-t=<replaceable>temporary directory</replaceable></option></arg>
  34. <arg choice="plain" rep="repeat"><replaceable>file</replaceable></arg>
  35. </cmdsynopsis>
  36. </refsynopsisdiv>
  37. <refsect1><title>Description</title>
  38. <para><command>apt-extracttemplates</command> will take one or more Debian package files
  39. as input and write out (to a temporary directory) all associated config
  40. scripts and template files. For each passed in package that contains
  41. config scripts and templates, one line of output will be generated
  42. in the format:</para>
  43. <para>package version template-file config-script</para>
  44. <para>template-file and config-script are written to the temporary directory
  45. specified by the -t or --tempdir (<literal>APT::ExtractTemplates::TempDir</literal>)
  46. directory, with filenames of the form <filename>package.template.XXXX</filename> and
  47. <filename>package.config.XXXX</filename></para>
  48. </refsect1>
  49. <refsect1><title>options</title>
  50. &apt-cmdblurb;
  51. <variablelist>
  52. <varlistentry><term><option>-t</option></term><term><option>--tempdir</option></term>
  53. <listitem><para>
  54. Temporary directory in which to write extracted debconf template files
  55. and config scripts.
  56. Configuration Item: <literal>APT::ExtractTemplates::TempDir</literal></para></listitem>
  57. </varlistentry>
  58. &apt-commonoptions;
  59. </variablelist>
  60. </refsect1>
  61. <refsect1><title>See Also</title>
  62. <para>&apt-conf;</para>
  63. </refsect1>
  64. <refsect1><title>Diagnostics</title>
  65. <para><command>apt-extracttemplates</command> returns zero on normal operation, decimal 100 on error.</para>
  66. </refsect1>
  67. &manbugs;
  68. </refentry>