Scroll to navigation

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

NAME

Dpkg - module with core variables

DESCRIPTION

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.

VARIABLES

$Dpkg::PROGNAME
Contains the name of the current program.
$Dpkg::PROGVERSION
Contains the version of the dpkg suite.
$Dpkg::PROGMAKE
Contains the name of the system GNU make program.
$Dpkg::PROGTAR
Contains the name of the system GNU tar program.
$Dpkg::PROGPATCH
Contains the name of the system GNU patch program (or another implementation that is directory traversal resistant).
$Dpkg::CONFDIR
Contains the path to the dpkg system configuration directory.
$Dpkg::ADMINDIR
Contains the path to the dpkg database directory.
$Dpkg::LIBDIR
Contains the path to the dpkg methods and plugins directory.
$Dpkg::DATADIR
Contains the path to the dpkg architecture tables directory.

MODULES

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.
Set, modify and query compilation build flags.
Build information functions.
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 stanza of deb822 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.

CHANGES

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)

New variables: $PROGNAME, $PROGVERSION, $CONFDIR, $ADMINDIR, $LIBDIR and $DATADIR.

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

Version 1.00 (dpkg 1.15.6)

Mark the module as public.

LICENSE

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

2024-08-01 1.22.11