AptPkg::Version (3)
Leading comments
Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) Standard preamble: ========================================================================
NAME
AptPkg::Version - APT package versioning classSYNOPSIS
use AptPkg::Version;DESCRIPTION
The AptPkg::Version module provides an interface toAPT
's package
version handling.
AptPkg::Version
The AptPkg::Version package implements theAPT
pkgVersioningSystem
class.
An instance of the AptPkg::Version class may be fetched using the "versioning" method from an AptPkg::System object.
The following methods are implemented:
- label
-
Return the description of the versioning system, for example:
Standard .deb
for Debian systems.
- compare(A, B)
- Compare package version A with B, returning a negative value if A is an earlier version than B, zero if the same or a positive value if A is later.
- rel_compare(A, B)
- Compare distribution release numbers.
- check_dep(PKG,OP,DEP)
-
Check that the package version PKGsatisfies the relationOPto the dependency versionDEP.
The relation
OPis specified in the Debian syntax regardless of the versioning system:<< strictly earlier <= earlier or equal = exactly equal >= later or equal >> strictly later
- upstream(VER)
- Return the upstream component of the given version string.