1 <!-- -*- mode: sgml; mode: fold -*- -->
2 <!doctype refentry PUBLIC "-//OASIS//DTD DocBook V3.1//EN" [
4 <!ENTITY % aptent SYSTEM "apt.ent">
13 <refentrytitle>apt-extracttemplates</>
17 <!-- Man page title -->
19 <refname>apt-extracttemplates</>
20 <refpurpose>Utility to extract DebConf config and templates from Debian packages</>
26 <command>apt-extracttemplate</>
27 <arg><option>-hv</></arg>
28 <arg><option>-t=<replaceable/temporary directory/</></arg>
29 <arg choice="plain" rep="repeat"><replaceable>file</replaceable></arg>
33 <RefSect1><Title>Description</>
35 <command/apt-extracttemplates/ 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
41 package version template-file config-script
43 template-file and config-script are written to the temporary directory
44 specified by the -t or --tempdir (<literal/APT::ExtractTemplates::TempDir/>)
45 directory, with filenames of the form <filename>template.XXXX</> and
46 <filename>config.XXXX</>
49 <RefSect1><Title>Options</>
53 <VarListEntry><term><option/-t/</><term><option/--tempdir/</>
55 Temporary directory in which to write extracted debconf template files
57 Configuration Item: <literal/APT::ExtractTemplates::TempDir/.
67 <RefSect1><Title>See Also</>
72 <RefSect1><Title>Diagnostics</>
74 <command/apt-extracttemplates/ returns zero on normal operation, decimal 100 on error.