{
    "mode": "perldoc",
    "parameter": "Dpkg::Deps::KnownFacts",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Dpkg%3A%3ADeps%3A%3AKnownFacts/json",
    "generated": "2026-06-09T12:03:33Z",
    "sections": {
        "NAME": {
            "content": "Dpkg::Deps::KnownFacts - list of installed real and virtual packages\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This class represents a list of installed packages and a list of virtual packages provided (by\nthe set of installed packages).\n",
            "subsections": []
        },
        "METHODS": {
            "content": "$facts = Dpkg::Deps::KnownFacts->new();\nCreates a new object.\n\n$facts->addinstalledpackage($package, $version, $arch, $multiarch)\nRecords that the given version of the package is installed. If $version/$arch is undefined\nwe know that the package is installed but we don't know which version/architecture it is.\n$multiarch is the Multi-Arch field of the package. If $multiarch is undef, it will be\nequivalent to \"Multi-Arch: no\".\n\nNote that $multiarch is only used if $arch is provided.\n\n$facts->addprovidedpackage($virtual, $relation, $version, $by)\nRecords that the \"$by\" package provides the $virtual package. $relation and $version\ncorrespond to the associated relation given in the Provides field (if present).\n\n$facts->evaluatesimpledep()\nThis method is private and should not be used except from within Dpkg::Deps.\n",
            "subsections": []
        },
        "CHANGES": {
            "content": "Version 2.00 (dpkg 1.20.0)\nRemove method: $facts->checkpackage().\n\nVersion 1.01 (dpkg 1.16.1)\nNew option: Dpkg::Deps::KnownFacts->addinstalledpackage() now accepts 2 supplementary\nparameters ($arch and $multiarch).\n\nDeprecated method: Dpkg::Deps::KnownFacts->checkpackage() is obsolete, it should not have been\npart of the public API.\n\nVersion 1.00 (dpkg 1.15.6)\nMark the module as public.\n",
            "subsections": []
        }
    },
    "summary": "Dpkg::Deps::KnownFacts - list of installed real and virtual packages",
    "flags": [],
    "examples": [],
    "see_also": []
}