AptPkg - interface to libapt-pkg
use AptPkg;
The AptPkg module provides a low-level XS interface to libapt-pkg.
Note that this interface is intended to be internal, and may change, see the AptPkg::Config, AptPkg::System, AptPkg::Version, AptPkg::Cache, Apt::Policy and AptPkg::Source classes for a higher level interface.
The AptPkg package provides the following functions:
The AptPkg::_config package wraps a Perl class around the Configuration class. It provides an instance of the global _config object, and exposes the following methods:
Find, FindFile, FindDir, FindB, FindAny, Set, Exists, ExistsAny, Tree and Dump.
The functions ReadConfigFile and ReadConfigDir are also provided within the package and may be used as methods.
The AptPkg::_config::item package wraps a Perl class around the Configuration::Item class. The AptPkg::_config Tree method returns an instance of this class.
Methods:
Value, Tag, FullTag, Parent, Child and Next.
The AptPkg::System package wraps a Perl class around the pkgSystem class. It provides an instance of the global _system object, and exposes the following methods:
Label, VS, Lock and UnLock.
The AptPkg::Version package wraps a Perl class around the pkgVersioningSystem class. It exposes the following methods:
Label, CmpVersion, CmpReleaseVer, CheckDep and UpstreamVersion.
The AptPkg::_cache package wraps a Perl class around the pkgCacheFile class. It exposes the following methods:
Open, Close, FindPkg, PkgBegin, FileList, Packages and Policy.
The AptPkg::Cache::_package package wraps a Perl class around the pkgCache::PkgIterator class. It exposes the following methods:
Next, Name, Section, VersionList, CurrentVer, RevDependsList, ProvidesList, Index, SelectedState, InstState, CurrentState and Flags.
The AptPkg::Cache::_version package wraps a Perl class around the pkgCache::VerIterator class. It exposes the following methods:
VerStr, Section, Arch, ParentPkg, DependsList, ProvidesList, FileList, Index and Priority.
The AptPkg::Cache::_depends package wraps a Perl class around the pkgCache::DepIterator class. It exposes the following methods:
TargetVer, TargetPkg, ParentVer, ParentPkg, Index, CompType and DepType.
The AptPkg::Cache::_provides package wraps a Perl class around the pkgCache::PrvIterator class. It exposes the following methods:
Name, ProvideVersion, OwnerVer, OwnerPkg and Index.
The AptPkg::Cache::_pkg_file package wraps a Perl class around the pkgCache::PkgFileIterator class. It exposes the following methods:
FileName, Archive, Component, Version, Origin, Label, Site, Architecture, IndexType and Index.
The AptPkg::Cache::_ver_file package wraps a Perl class around the pkgCache::VerFileIterator class. It exposes the following methods:
File, Index, Offset and Size.
The AptPkg::Cache::_pkg_records package wraps a Perl class around the pkgRecords class. It exposes the following methods:
Lookup.
The AptPkg::_policy package wraps a Perl class around the pkgPolicy class. It exposes the following methods:
GetPriority, GetMatch and GetCandidateVer.
The AptPkg::_source_list package wraps a Perl class around the pkgSourceList class. Required as an argument to the AptPkg::_src_records constructor.
The AptPkg::_src_records package wraps a Perl class around the pkgSrcRecords class. It exposes the following methods:
Restart, Find.
The following APT enumerations are included, used by attributes of AptPkg::Cache.
AptPkg::Dep::Depends
,
AptPkg::Dep::PreDepends
,
AptPkg::Dep::Suggests
,
AptPkg::Dep::Recommends
,
AptPkg::Dep::Conflicts
,
AptPkg::Dep::Replaces
and
AptPkg::Dep::Obsoletes
.
AptPkg::Dep::Or
,
AptPkg::Dep::NoOp
,
AptPkg::Dep::LessEq
,
AptPkg::Dep::GreaterEq
,
AptPkg::Dep::Less
,
AptPkg::Dep::Greater
,
AptPkg::Dep::Equals
and
AptPkg::Dep::NotEquals
.
AptPkg::State::Important
,
AptPkg::State::Required
,
AptPkg::State::Standard
,
AptPkg::State::Optional
and
AptPkg::State::Extra
.
AptPkg::State::Unknown
,
AptPkg::State::Install
,
AptPkg::State::Hold
,
AptPkg::State::DeInstall
and
AptPkg::State::Purge
.
AptPkg::State::Ok
,
AptPkg::State::ReInstReq
,
AptPkg::State::HoldInst
and
AptPkg::State::HoldReInstReq
.
AptPkg::State::NotInstalled
,
AptPkg::State::UnPacked
,
AptPkg::State::HalfConfigured
,
AptPkg::State::HalfInstalled
,
AptPkg::State::ConfigFiles
and
AptPkg::State::Installed
.
AptPkg::Flag::Auto
,
AptPkg::Flag::Essential
and
AptPkg::Flag::Important
.
AptPkg::Config(3pm), AptPkg::System(3pm), AptPkg::Version(3pm), AptPkg::Cache(3pm), AptPkg::Source(3pm).
Brendan O'Dea <bod@debian.org>