Dpkg::Deps::KnownFacts(3perl)
π NAME π
okay bestie, welcome to Dpkg::Deps::KnownFacts β this is the Dpkg::Deps::KnownFacts(3perl) page from libdpkg-perl, and it's literally a list of installed real and virtual packages. π
β¨ DESCRIPTION β¨
This class represents a list of installed packages and a list of virtual packages provided (by the set of installed packages).
Think of it as the group chat roster: one list for the installed packages, and another for the virtual packages that the installed set provides. It's giving dependency-tracking main character energy. π
π οΈ METHODS π οΈ
$facts = Dpkg::Deps::KnownFacts->new();β creates a new object. Fresh object, no cap. β¨$facts->add_installed_package($package, $version, $arch, $multiarch)β records that the given version of the package is installed. If$version/$archis undefined, we know that the package is installed but we don't know which version/architecture it is.$multiarchis theMulti-Archfield of the package. If$multiarchisundef, it will be equivalent toMulti-Arch: no. Note that$multiarchis only used if$archis provided. π«Ά$facts->add_provided_package($virtual, $relation, $version, $by)β records that the$bypackage provides the$virtualpackage.$relationand$versioncorrespond to the associated relation given in theProvidesfield (if present). π$facts->evaluate_simple_dep()β this method is private and should not be used except from withinDpkg::Deps. Like, do not touch it unless you're literally insideDpkg::Deps, bestie. π«£
π¦ CHANGES π¦
Version 2.00 (dpkg 1.20.0)
- Remove method:
$facts->check_package().
Version 1.01 (dpkg 1.16.1)
- New option:
$facts->add_installed_package()now accepts 2 supplementary parameters ($archand$multiarch). - Deprecated method:
$facts->check_package()is obsolete, it should not have been part of the public API.
Version 1.00 (dpkg 1.15.6)
- Mark the module as public.
okay that's the whole tea β β this libdpkg-perl page is version 1.23.11-dirty, dated 2026-09-09, and you're reading Dpkg::Deps::KnownFacts(3perl). mwah π
π¦ where this page comes from
- arch rolling: dpkg 1.23.11-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms