apt-extracttemplates.1.xml 2.5 KB

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