LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

apt-extracttemplates

Extract debconf templates from Debian packages.

TLDR

Extract debconf templates from packages
$ apt-extracttemplates [package.deb]
copy
Extract to specific directory
$ apt-extracttemplates -t [/tmp/templates] [package.deb]
copy
Extract from multiple packages
$ apt-extracttemplates [package1.deb] [package2.deb]
copy

SYNOPSIS

apt-extracttemplates [-t tempdir] packages

DESCRIPTION

apt-extracttemplates extracts debconf templates and configuration scripts from Debian packages. It's used internally by APT during package installation to gather configuration information.For each package, it outputs four lines: package name, version, template filename, and config script filename. The extracted templates contain questions that debconf uses to configure packages during installation.

PARAMETERS

-t dir, --tempdir dir

Directory for extracted files
-c file, --config-file file
Configuration file
-o option
Set an arbitrary APT configuration option

CAVEATS

This is primarily an internal APT tool. Most users interact with debconf through frontend tools rather than directly extracting templates.

HISTORY

apt-extracttemplates is part of the APT package management infrastructure, supporting the debconf configuration system.

SEE ALSO

apt(8), apt-get(8), dpkg(1), dpkg-deb(1)

Copied to clipboard
Kai