{
    "mode": "perldoc",
    "parameter": "Dpkg::Control",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Dpkg%3A%3AControl/json",
    "generated": "2026-05-30T17:17:05Z",
    "sections": {
        "NAME": {
            "content": "Dpkg::Control - parse and manipulate official control-like information\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The Dpkg::Control object is a smart version of Dpkg::Control::Hash. It\nassociates a type to the control information. That type can be used to\nknow what fields are allowed and in what order they must be output.\n\nThe types are constants that are exported by default. Here's the full\nlist:\n\nCTRLUNKNOWN\nThis type is the default type, it indicates that the type of control\ninformation is not yet known.\n\nCTRLINFOSRC\nCorresponds to the first block of information in a debian/control\nfile in a Debian source package.\n\nCTRLINFOPKG\nCorresponds to subsequent blocks of information in a debian/control\nfile in a Debian source package.\n\nCTRLREPORELEASE\nCorresponds to a Release file in a repository.\n\nCTRLINDEXSRC\nCorresponds to an entry in a Sources file of a source package\nrepository.\n\nCTRLINDEXPKG\nCorresponds to an entry in a Packages file of a binary package\nrepository.\n\nCTRLPKGSRC\nCorresponds to a .dsc file of a Debian source package.\n\nCTRLPKGDEB\nCorresponds to the control file generated by dpkg-gencontrol\n(DEBIAN/control) and to the same file inside .deb packages.\n\nCTRLFILEBUILDINFO\nCorresponds to a .buildinfo file.\n\nCTRLFILECHANGES\nCorresponds to a .changes file.\n\nCTRLFILEVENDOR\nCorresponds to a vendor file in $Dpkg::CONFDIR/origins/.\n\nCTRLFILESTATUS\nCorresponds to an entry in dpkg's status file\n($Dpkg::ADMINDIR/status).\n\nCTRLCHANGELOG\nCorresponds to the output of dpkg-parsechangelog.\n\nCTRLCOPYRIGHTHEADER\nCorresponds to the header control block in a debian/copyright file\nin machine readable format.\n\nCTRLCOPYRIGHTFILES\nCorresponds to a files control block in a debian/copyright file in\nmachine readable format.\n\nCTRLCOPYRIGHTLICENSE\nCorresponds to a license control block in a debian/copyright file in\nmachine readable format.\n\nCTRLTESTS\nCorresponds to a package tests control file in debian/tests/control.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "All the methods of Dpkg::Control::Hash are available. Those listed below\nare either new or overridden with a different behaviour.\n\n$c = Dpkg::Control->new(%opts)\nIf the \"type\" option is given, it's used to setup default values for\nother options. See setoptions() for more details.\n\n$c->setoptions(%opts)\nChanges the value of one or more options. If the \"type\" option is\nchanged, it is used first to define default values for others\noptions. The option \"allowpgp\" is set to 1 for CTRLPKGSRC,\nCTRLFILECHANGES and CTRLREPORELEASE and to 0 otherwise. The\noption \"dropempty\" is set to 0 for CTRLINFOPKG and CTRLINFOSRC\nand to 1 otherwise. The option \"name\" is set to a textual\ndescription of the type of control information.\n\nThe output order is also set to match the ordered list returned by\nDpkg::Control::Fields::fieldorderedlist($type).\n\n$c->gettype()\nReturns the type of control information stored. See the type\nparameter set during new().\n",
            "subsections": []
        },
        "CHANGES": {
            "content": "Version 1.03 (dpkg 1.18.11)\nNew type: CTRLFILEBUILDINFO.\n\nVersion 1.02 (dpkg 1.18.8)\nNew type: CTRLTESTS.\n\nVersion 1.01 (dpkg 1.18.5)\nNew types: CTRLREPORELEASE, CTRLCOPYRIGHTHEADER,\nCTRLCOPYRIGHTFILES, CTRLCOPYRIGHTLICENSE.\n\nVersion 1.00 (dpkg 1.15.6)\nMark the module as public.\n",
            "subsections": []
        }
    },
    "summary": "Dpkg::Control - parse and manipulate official control-like information",
    "flags": [],
    "examples": [],
    "see_also": []
}