info > Dpkg::Control

๐Ÿ“– NAME

Dpkg::Control โ€” parse and manipulate official control-like information

๐Ÿš€ Quick Reference

Use CaseCommandDescription
Create a new control object Dpkg::Control->new(type => CTRL_INFO_SRC) Initialize with a specific type to set field order and allowed fields
Change options after creation $c->set_options(allow_pgp => 1) Modify parsing behavior (e.g., allow PGP signatures)
Get the current control type $c->get_type() Returns one of the CTRL_* constants
Parse a source package control file my $c = Dpkg::Control->new(type => CTRL_INFO_SRC) First block of debian/control (source package info)
Parse a binary package control file my $c = Dpkg::Control->new(type => CTRL_PKG_DEB) Control file inside a .deb package

๐Ÿ“ DESCRIPTION

The Dpkg::Control object is a smart version of Dpkg::Control::Hash. It associates a type to the control information. That type can be used to know what fields are allowed and in what order they must be output.

The types are constants that are exported by default. Here's the full list:

โš™๏ธ METHODS

All the methods of Dpkg::Control::Hash are available. Those listed below are either new or overridden with a different behaviour.

๐Ÿ“œ CHANGES

๐Ÿ”น Version 1.03 (dpkg 1.18.11)

New type: CTRL_FILE_BUILDINFO.

๐Ÿ”น Version 1.02 (dpkg 1.18.8)

New type: CTRL_TESTS.

๐Ÿ”น Version 1.01 (dpkg 1.18.5)

New types: CTRL_REPO_RELEASE, CTRL_COPYRIGHT_HEADER, CTRL_COPYRIGHT_FILES, CTRL_COPYRIGHT_LICENSE.

๐Ÿ”น Version 1.00 (dpkg 1.15.6)

Mark the module as public.


1.21.1 ยท 2025-09-09 ยท Dpkg::Control(3perl)

Dpkg::Control
๐Ÿ“– NAME ๐Ÿš€ Quick Reference ๐Ÿ“ DESCRIPTION โš™๏ธ METHODS ๐Ÿ“œ CHANGES
๐Ÿ”น Version 1.03 (dpkg 1.18.11) ๐Ÿ”น Version 1.02 (dpkg 1.18.8) ๐Ÿ”น Version 1.01 (dpkg 1.18.5) ๐Ÿ”น Version 1.00 (dpkg 1.15.6)

Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-25 17:49 @216.73.217.127
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!