AptPkg::Policy (3)
Leading comments
Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) Standard preamble: ========================================================================
NAME
AptPkg::Policy - APT package version policy classSYNOPSIS
use AptPkg::Policy;DESCRIPTION
The AptPkg::Policy module provides an interface toAPT
's package
version policy.
AptPkg::Policy
The AptPkg::Policy package implements theAPT
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:
- priority(PKG|FILE)
-
Return the pin priority for the given PKG(AptPkg::Cache::Package) orFILE(AptPkg::Cache::PkgFile) object.
- match(PKG)
-
Find the pinned version of PKG. Returns an AptPkg::Cache::Version object.
- candidate(PKG)
-
Returns the installation candidate version for PKG.