Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

AptPkg::Policy

Name AptPkg::Policy
Version 1.1
Located at /usr/lib/x86_64-linux-gnu/perl5/5.34
File /usr/lib/x86_64-linux-gnu/perl5/5.34/AptPkg/Policy.pm
Is Core No
Search CPAN for this module AptPkg::Policy
Documentation AptPkg::Policy
Module Details AptPkg::Policy

NAME

AptPkg::Policy - APT package version policy class


SYNOPSIS

use AptPkg::Policy;


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.


SEE ALSO

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


AUTHOR

Brendan O'Dea <bod@debian.org>

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026