Constructor
The cache initialisation can be quite verbose---controlled by the value of $_config->{quiet}, which is set to ``2'' (quiet) if the $_config object is auto-initialised.
The cache directory is locked if LOCK is true.
It is important to note that the structure of the returned object contains self-referential elements, so some care must be taken if attempting to traverse it recursively.
Methods
Keys
SelectedState may be "Unknown", "Install", "Hold", "DeInstall" or "Purge".
InstState may be "Ok", "ReInstReq", "HoldInst" or "HoldReInstReq".
CurrentState may be "NotInstalled", "UnPacked", "HalfConfigured", "HalfInstalled", "ConfigFiles" or "Installed".
In a numeric context, SelectedState, InstState and CurrentState evaluate to an AptPkg::State:: constant.
In a numeric context, evaluates to a combination of AptPkg::Flag:: constants.
[Note: the only one of these you need worry about is "Essential", which is set based on the package's header of the same name. "Auto" seems to be used internally by APT, and "Important" seems to only be set on the apt package.]
Keys
In a numeric context, evaluates to an AptPkg::VerPriority:: constant.
Keys
In a numeric context, evaluates to an AptPkg::Dep:: constant.
CompTypeDeb returns Debian-style operators (>> rather than >).
In a numeric context, both CompType and CompTypeDeb evaluate to an AptPkg::Dep:: constant.
Alternative dependencies (Depends: a | b) are identified by all but the last having the AptPkg::Dep::Or bit set in the numeric representation of CompType (and CompTypeDeb).
Keys
Keys
Keys