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" [
5 <!ENTITY % aptent SYSTEM
"apt.ent">
14 <refentrytitle>apt-extracttemplates
</refentrytitle>
15 <manvolnum>1</manvolnum>
18 <!-- Man page title -->
20 <refname>apt-extracttemplates
</refname>
21 <refpurpose>Utility to extract DebConf config and templates from Debian packages
</refpurpose>
27 <command>apt-extracttemplates
</command>
28 <arg><option>-hv
</option></arg>
29 <arg><option>-t=
<replaceable>temporary directory
</replaceable></option></arg>
30 <arg choice=
"plain" rep=
"repeat"><replaceable>file
</replaceable></arg>
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
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>
47 <refsect1><title>options
</title>
51 <varlistentry><term><option>-t
</option></term><term><option>--tempdir
</option></term>
53 Temporary directory in which to write extracted debconf template files
55 Configuration Item:
<literal>APT::ExtractTemplates::TempDir
</literal></para></listitem>
65 <refsect1><title>See Also
</title>
66 <para>&apt-conf;
</para>
69 <refsect1><title>Diagnostics
</title>
71 <command>apt-extracttemplates
</command> returns zero on normal operation, decimal
100 on error.
</para>