logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

AptPkg::Policy - APT package version policy class

Author

Brendan O'Dea <bod@debian.org> perl v5.40.1 2025-04-14 AptPkg::Policy(3pm)

Description

The AptPkg::Policy module provides an interface to APT's package version policy. AptPkg::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: priority(VER|FILE) Return the pin priority for the given VER (AptPkg::Cache::Version) or FILE (AptPkg::Cache::PkgFile) object. candidate(PKG) Returns the installation candidate version for PKG. Returns an AptPkg::Cache::Version object.

Name

AptPkg::Policy - APT package version policy class

See Also

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

Synopsis

use AptPkg::Policy;

See Also