1Dpkg::Deps::KnownFacts(3perl) libdpkg-perl Dpkg::Deps::KnownFacts(3perl)
2
3
4
6 Dpkg::Deps::KnownFacts - list of installed real and virtual packages
7
9 This class represents a list of installed packages and a list of
10 virtual packages provided (by the set of installed packages).
11
13 $facts = Dpkg::Deps::KnownFacts->new();
14 Creates a new object.
15
16 $facts->add_installed_package($package, $version, $arch, $multiarch)
17 Records that the given version of the package is installed. If
18 $version/$arch is undefined we know that the package is installed
19 but we don't know which version/architecture it is. $multiarch is
20 the Multi-Arch field of the package. If $multiarch is undef, it
21 will be equivalent to "Multi-Arch: no".
22
23 Note that $multiarch is only used if $arch is provided.
24
25 $facts->add_provided_package($virtual, $relation, $version, $by)
26 Records that the "$by" package provides the $virtual package.
27 $relation and $version correspond to the associated relation given
28 in the Provides field (if present).
29
30 $facts->evaluate_simple_dep()
31 This method is private and should not be used except from within
32 Dpkg::Deps.
33
35 Version 2.00 (dpkg 1.20.0)
36 Remove method: $facts->check_package().
37
38 Version 1.01 (dpkg 1.16.1)
39 New option: Dpkg::Deps::KnownFacts->add_installed_package() now accepts
40 2 supplementary parameters ($arch and $multiarch).
41
42 Deprecated method: Dpkg::Deps::KnownFacts->check_package() is obsolete,
43 it should not have been part of the public API.
44
45 Version 1.00 (dpkg 1.15.6)
46 Mark the module as public.
47
48
49
501.20.9 2021-07-21 Dpkg::Deps::KnownFacts(3perl)