{
    "mode": "perldoc",
    "parameter": "Dpkg::Control",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Dpkg%3A%3AControl/json",
    "generated": "2026-10-22T12:57:36Z",
    "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 associates a type to the\ncontrol information. That type can be used to know what fields are allowed and in what order\nthey must be output.\n\nThe types are constants that are exported by default. Here's the full list:\n\nCTRLUNKNOWN\nThis type is the default type, it indicates that the type of control information is not yet\nknown.\n\nCTRLTMPLSRC\nCorresponds to the first source package stanza in a debian/control file in a Debian source\npackage.\n\nCTRLTMPLPKG\nCorresponds to subsequent binary package stanza in a debian/control file in a Debian source\npackage.\n\nCTRLREPORELEASE\nCorresponds to a Release file in a repository.\n\nCTRLREPOSRC\nCorresponds to a stanza in a Sources file of a source package repository.\n\nCTRLREPOPKG\nCorresponds to a stanza in a Packages file of a binary package repository.\n\nCTRLDSC\nCorresponds to a .dsc file of a Debian source package.\n\nCTRLDEB\nCorresponds to the control file generated by dpkg-gencontrol (DEBIAN/control) and to the\nsame 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 a stanza in dpkg's status file ($Dpkg::ADMINDIR/status).\n\nCTRLCHANGELOG\nCorresponds to the output of dpkg-parsechangelog.\n\nCTRLCOPYRIGHTHEADER\nCorresponds to the header stanza in a debian/copyright file in machine readable format.\n\nCTRLCOPYRIGHTFILES\nCorresponds to a files stanza in a debian/copyright file in machine readable format.\n\nCTRLCOPYRIGHTLICENSE\nCorresponds to a license stanza in a debian/copyright file in machine readable format.\n\nCTRLTESTS\nCorresponds to a source package tests control file in debian/tests/control.\n\nCTRLINFOSRC\nAlias for CTRLTMPLSRC.\n\nCTRLINFOPKG\nAlias for CTRLTMPLPKG.\n\nCTRLPKGSRC\nAlias for CTRLDSC.\n\nCTRLPKGDEB\nAlias for CTRLDEB.\n\nCTRLINDEXSRC\nAlias for CTRLREPOSRC.\n\nCTRLINDEXPKG\nAlias for CTRLREPOPKG.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "All the methods of Dpkg::Control::Hash are available. Those listed below are either new or\noverridden with a different behavior.\n\n$c = Dpkg::Control->new(%opts)\nIf the \"type\" option is given, it's used to setup default values for other options. See\nsetoptions() for more details.\n\n$c->setoptions(%opts)\nChanges the value of one or more options. If the \"type\" option is changed, it is used first\nto define default values for others options. The option \"allowpgp\" is set to 1 for\nCTRLDSC, CTRLFILECHANGES and CTRLREPORELEASE and to 0 otherwise. The option\n\"dropempty\" is set to 0 for CTRLTMPLSRC and CTRLTMPLPKG and to 1 otherwise. The option\n\"name\" is set to a textual description 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 parameter set during new().\n",
            "subsections": []
        },
        "CHANGES": {
            "content": "Version 1.04 (dpkg 1.22.2)\nNew types: CTRLTMPLSRC, CTRLTMPLPKG, CTRLREPOSRC, CTRLREPOPKG, CTRLDSC, CTRLDEB.\n\nVersion 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, CTRLCOPYRIGHTFILES,\nCTRLCOPYRIGHTLICENSE.\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": []
}