{
    "content": [
        {
            "type": "text",
            "text": "# apt-extracttemplates(1) (man)\n\n**Summary:** apt-extracttemplates - Utility to extract debconf config and templates from Debian packages\n\n**Synopsis:** apt-extracttemplates [-t=temporarydirectory] filename... {-v | --version} {-h | --help}\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -t | --tempdir | — | Temporary directory in which to write extracted debconf template files and config scripts. Configuration Item: APT::Extr |\n| -h | --help | — | Show a short usage summary. |\n| -v | --version | — | Show the program version. |\n| -c | --config-file | — | Configuration File; Specify a configuration file to use. The program will read the default configuration file and then t |\n| -o | --option | — | Set a Configuration Option; This will set an arbitrary configuration option. The syntax is -o Foo::Bar=bar. -o and --opt |\n\n## See Also\n\n- apt.conf(5)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (11 lines)\n- **OPTIONS** (4 lines) — 5 subsections\n  - -t --tempdir (3 lines)\n  - -h --help (2 lines)\n  - -v --version (2 lines)\n  - -c --config-file (5 lines)\n  - -o --option (3 lines)\n- **SEE ALSO** (2 lines)\n- **DIAGNOSTICS** (2 lines)\n- **BUGS** (3 lines)\n- **AUTHORS** (1 lines) — 2 subsections\n  - Jason Gunthorpe (1 lines)\n  - APT team (1 lines)\n- **NOTES** (6 lines)\n\n## Full Content\n\n### NAME\n\napt-extracttemplates - Utility to extract debconf config and templates from Debian packages\n\n### SYNOPSIS\n\napt-extracttemplates [-t=temporarydirectory] filename... {-v | --version} {-h | --help}\n\n### DESCRIPTION\n\napt-extracttemplates will take one or more Debian package files as input and write out (to a\ntemporary directory) all associated config scripts and template files. For each passed in\npackage that contains config scripts and templates, one line of output will be generated in\nthe format:\n\npackage version template-file config-script\n\ntemplate-file and config-script are written to the temporary directory specified by the -t or\n--tempdir (APT::ExtractTemplates::TempDir) directory, with filenames of the form\npackage.template.XXXXXX and package.config.XXXXXX\n\n### OPTIONS\n\nAll command line options may be set using the configuration file, the descriptions indicate\nthe configuration option to set. For boolean options you can override the config file by\nusing something like -f-,--no-f, -f=no or several other variations.\n\n#### -t --tempdir\n\nTemporary directory in which to write extracted debconf template files and config\nscripts. Configuration Item: APT::ExtractTemplates::TempDir\n\n#### -h --help\n\nShow a short usage summary.\n\n#### -v --version\n\nShow the program version.\n\n#### -c --config-file\n\nConfiguration File; Specify a configuration file to use. The program will read the\ndefault configuration file and then this configuration file. If configuration settings\nneed to be set before the default configuration files are parsed specify a file with the\nAPTCONFIG environment variable. See apt.conf(5) for syntax information.\n\n#### -o --option\n\nSet a Configuration Option; This will set an arbitrary configuration option. The syntax\nis -o Foo::Bar=bar.  -o and --option can be used multiple times to set different options.\n\n### SEE ALSO\n\napt.conf(5)\n\n### DIAGNOSTICS\n\napt-extracttemplates returns zero on normal operation, decimal 100 on error.\n\n### BUGS\n\nAPT bug page[1]. If you wish to report a bug in APT, please see\n/usr/share/doc/debian/bug-reporting.txt or the reportbug(1) command.\n\n### AUTHORS\n\n#### Jason Gunthorpe\n\n#### APT team\n\n### NOTES\n\n1. APT bug page\nhttp://bugs.debian.org/src:apt\n\n\n\nAPT 2.4.14                                  27 March 2014                     APT-EXTRACTTEMPLATE(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "apt-extracttemplates",
        "section": "1",
        "mode": "man",
        "summary": "apt-extracttemplates - Utility to extract debconf config and templates from Debian packages",
        "synopsis": "apt-extracttemplates [-t=temporarydirectory] filename... {-v | --version} {-h | --help}",
        "flags": [
            {
                "flag": "-t",
                "long": "--tempdir",
                "arg": null,
                "description": "Temporary directory in which to write extracted debconf template files and config scripts. Configuration Item: APT::ExtractTemplates::TempDir"
            },
            {
                "flag": "-h",
                "long": "--help",
                "arg": null,
                "description": "Show a short usage summary."
            },
            {
                "flag": "-v",
                "long": "--version",
                "arg": null,
                "description": "Show the program version."
            },
            {
                "flag": "-c",
                "long": "--config-file",
                "arg": null,
                "description": "Configuration File; Specify a configuration file to use. The program will read the default configuration file and then this configuration file. If configuration settings need to be set before the default configuration files are parsed specify a file with the APTCONFIG environment variable. See apt.conf(5) for syntax information."
            },
            {
                "flag": "-o",
                "long": "--option",
                "arg": null,
                "description": "Set a Configuration Option; This will set an arbitrary configuration option. The syntax is -o Foo::Bar=bar. -o and --option can be used multiple times to set different options."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "apt.conf",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/apt.conf/5/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 11,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 4,
                "subsections": [
                    {
                        "name": "-t --tempdir",
                        "lines": 3,
                        "flag": "-t",
                        "long": "--tempdir"
                    },
                    {
                        "name": "-h --help",
                        "lines": 2,
                        "flag": "-h",
                        "long": "--help"
                    },
                    {
                        "name": "-v --version",
                        "lines": 2,
                        "flag": "-v",
                        "long": "--version"
                    },
                    {
                        "name": "-c --config-file",
                        "lines": 5,
                        "flag": "-c",
                        "long": "--config-file"
                    },
                    {
                        "name": "-o --option",
                        "lines": 3,
                        "flag": "-o",
                        "long": "--option"
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DIAGNOSTICS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "Jason Gunthorpe",
                        "lines": 1
                    },
                    {
                        "name": "APT team",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "NOTES",
                "lines": 6,
                "subsections": []
            }
        ]
    }
}