Skip to main content

Pure Python implementation of rpmvercmp

Project description

Pure Python implementation of rpmvercmp.

The RPM Package Manager ( has a version comparision algorithm, implemented in its C library, which performs the comparison in a certain way.

In certain circumstances, where the C library is not installable (for example, on non-rpm based systems), or does not support the desired version of the python interpreter, the pure-python implementation may be useful.

Source Code


$ pip install rpm_vercmp


import rpm_vercmp assert rpm_vercmp.vercmp(“1.0”, “1.0”) == 0 assert rpm_vercmp.vercmp(“1.0”, “1.1”) == -1


The testsuite uses rpm’s test file in m4 format. The file cat be fetched from:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rpm_vercmp-0.1.2.tar.gz (8.9 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page