AptPkg::Version(3pm)

AptPkg::Version3pm

Apt package versioning class

Usage

use AptPkg::Version;

Overview

The AptPkg::Version module provides an interface to APT's package version handling.

AptPkg::Version

The AptPkg::Version package implements the APT 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 PKG satisfies the relation OP to the dependency version DEP.

The relation OP is 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.

Releases

12 releases since Debian 3.0 (Woody); the text changed 11 times.

  1. 3.0
  2. 3.1
  3. 4.0
  4. 5.0
  5. 6.0
  6. 7
  7. 8
  8. 9
  9. 10
  10. 11
  11. 12
  12. 13

Author

Brendan O'Dea <[email protected]>

From libapt-pkg-perl 0.1.42 in Debian 13 (Trixie). Parsed by carta from the page's man source.