Scroll to navigation

Dpkg(3perl) libdpkg-perl Dpkg(3perl)


Dpkg - module with core variables


The Dpkg module provides a set of variables with information concerning this system installation.

It is also the entry point to the Dpkg module hierarchy.


Contains the name of the current program.
Contains the version of the dpkg suite.
Contains the name of the system GNU make program.
Contains the name of the system GNU tar program.
Contains the name of the system GNU patch program (or another implementation that is directory traversal resistant).
Contains the path to the dpkg system configuration directory.
Contains the path to the dpkg database directory.
Contains the path to the dpkg methods and plugins directory.
Contains the path to the dpkg architecture tables directory.


The following is the list of public modules within the Dpkg hierarchy. Only modules with versions 1.00 or higher, and only the interfaces documented in their POD are considered public.

This module, core variables.
Architecture handling functions.
Build information functions.
Set, modify and query compilation build flags.
Parse and manipulate DEB_BUILD_OPTIONS.
Parse and manipulate build profiles.
Parse changelogs.
Represents a changelog entry.
Generic changelog parser for dpkg-parsechangelog.
Generate and parse checksums.
Simple database of available compression methods.
Transparently compress and decompress files.
Wrapper around compression tools.
Parse dpkg configuration files.
Parse and manipulate Debian control information (.dsc, .changes, Packages/Sources entries, etc.).
Represent fields output by dpkg-parsechangelog.
Manage (list of known) control fields.
Parse and manipulate a block of RFC822-like fields.
Parse files like debian/control.
Parse files like debian/tests/control.
Represents a debian/tests/control stanza.
Parse and manipulate dependencies.
Represents a single dependency statement.
Base module to represent multiple dependencies.
List of unrelated dependencies.
List of AND dependencies.
List of OR dependencies.
List of installed and virtual packages.
Push, pop and run exit handlers.
Wrapper around Locale::gettext.
Spawn sub-processes and feed/retrieve data.
Collections of Dpkg::Control (Packages/Sources files for example).
Base object serializer.
Common path handling functions.
Parse and manipulate debian/source/format files.
Extract Debian source packages.
Substitute variables in strings.
Identify current distribution vendor.
Parse and manipulate Debian package versions.


Version 2.00 (dpkg 1.20.0)

Remove variables: $version, $progname, $admindir, $dpkglibdir and $pkgdatadir.

Version 1.03 (dpkg 1.18.24)

New variable: $PROGPATCH.

Version 1.02 (dpkg 1.18.11)

New variable: $PROGTAR, $PROGMAKE.

Version 1.01 (dpkg 1.17.0)


Deprecated variables: $version, $admindir, $dpkglibdir and $pkgdatadir.

Version 1.00 (dpkg 1.15.6)

Mark the module as public.


See the header comment on each module for their particular license.

2022-07-01 1.21.9