-
-
06 Dec 2021 20:23:10 UTC
- Distribution: Dpkg
- Module version: 2.00
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository (git clone)
- Issues
- Testers (34 / 0 / 39)
- Kwalitee
Bus factor: 1- License: gpl_2
- Perl: v5.28.1
- Activity
24 month- Tools
- Download (522.16KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- none
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Dpkg::Deps::KnownFacts - 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).
METHODS
- $facts = Dpkg::Deps::KnownFacts->new();
-
Creates a new object.
- $facts->add_installed_package($package, $version, $arch, $multiarch)
-
Records that the given version of the package is installed. If $version/$arch is undefined we know that the package is installed but we don't know which version/architecture it is. $multiarch is the Multi-Arch field of the package. If $multiarch is undef, it will be equivalent to "Multi-Arch: no".
Note that $multiarch is only used if $arch is provided.
- $facts->add_provided_package($virtual, $relation, $version, $by)
-
Records that the "$by" package provides the $virtual package. $relation and $version correspond to the associated relation given in the Provides field (if present).
- $facts->evaluate_simple_dep()
-
This method is private and should not be used except from within Dpkg::Deps.
CHANGES
Version 2.00 (dpkg 1.20.0)
Remove method: $facts->check_package().
Version 1.01 (dpkg 1.16.1)
New option: Dpkg::Deps::KnownFacts->add_installed_package() now accepts 2 supplementary parameters ($arch and $multiarch).
Deprecated method: Dpkg::Deps::KnownFacts->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.
Module Install Instructions
To install Dpkg, copy and paste the appropriate command in to your terminal.
cpanm Dpkg
perl -MCPAN -e shell install Dpkg
For more information on module installation, please visit the detailed CPAN module installation guide.