Debbugs::Versions::Dpkg(3pm)

Debbugs::Versions::Dpkg3pm

Pure-perl dpkg-style version comparison

Overview

The Debbugs::Versions::Dpkg module provides pure-Perl routines to compare dpkg-style version numbers, as used in Debian packages. If you have the libapt-pkg Perl bindings available (Debian package libapt-pkg-perl), they may offer better performance.

Methods

vercmp

Compare the two arguments as dpkg-style version numbers. Returns -1 if the first argument represents a lower version number than the second, 1 if the first argument represents a higher version number than the second, and 0 if the two arguments represent equal version numbers.

Author

Don Armstrong <[email protected]> and Colin Watson <[email protected]>, based on the implementation in "dpkg/lib/vercmp.c" by Ian Jackson and others.

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