{
    "mode": "perldoc",
    "parameter": "Dpkg::Control",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Dpkg%3A%3AControl/json",
    "generated": "2026-06-16T15:54:59Z",
    "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\nCTRLINFOSRC\nCorresponds to the first block of information in a debian/control file in a Debian source\npackage.\n\nCTRLINFOPKG\nCorresponds to subsequent blocks of information in a debian/control file in a Debian source\npackage.\n\nCTRLREPORELEASE\nCorresponds to a Release file in a repository.\n\nCTRLINDEXSRC\nCorresponds to an entry in a Sources file of a source package repository.\n\nCTRLINDEXPKG\nCorresponds to an entry in a Packages file of a binary package repository.\n\nCTRLPKGSRC\nCorresponds to a .dsc file of a Debian source package.\n\nCTRLPKGDEB\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 an entry in dpkg's status file ($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 in machine readable\nformat.\n\nCTRLCOPYRIGHTFILES\nCorresponds to a files control block in a debian/copyright file in machine readable format.\n\nCTRLCOPYRIGHTLICENSE\nCorresponds to a license control block in a debian/copyright file in machine readable\nformat.\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 are either new or\noverridden 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 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\nCTRLPKGSRC, CTRLFILECHANGES and CTRLREPORELEASE and to 0 otherwise. The option\n\"dropempty\" is set to 0 for CTRLINFOPKG and CTRLINFOSRC 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.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": []
}