DOKK / manpages / debian 10 / libapt-pkg-perl / AptPkg::Policy.3pm.en
AptPkg::Policy(3pm) User Contributed Perl Documentation AptPkg::Policy(3pm)

AptPkg::Policy - APT package version policy class

use AptPkg::Policy;

The AptPkg::Policy module provides an interface to APT's package version policy.

The AptPkg::Policy package implements the APT pkgPolicy class.

An instance of the AptPkg::Policy class may be fetched using the "policy" method from an AptPkg::Cache object.

The following methods are implemented:

Return the pin priority for the given PKG (AptPkg::Cache::Package) or FILE (AptPkg::Cache::PkgFile) object.
Find the pinned version of PKG. Returns an AptPkg::Cache::Version object.
Returns the installation candidate version for PKG.

AptPkg::Cache(3pm), AptPkg(3pm).

Brendan O'Dea <bod@debian.org>

2018-11-01 perl v5.28.0