How does the "rpmdev-vercmp" work?

Solution Verified - Updated -

Issue

  • While using the rpmdev-vercmp script with two package versions, got the wrong result :
rpmdev-vercmp proftpd-1.3.5b-2.el7.x86_64.rpm proftpd-1.3.5-2.el7.x86_64.rpm
The result is:
proftpd-1.3.5b-2.el7.x86_64.rpm < proftpd-1.3.5-2.el7.x86_64.rpm
  • But the result should be :
proftpd-1.3.5b-2.el7.x86_64.rpm > proftpd-1.3.5-2.el7.x86_64.rpm

Environment

  • Red Hat Enterprise Linux 7.2
  • rpmdevtools-8.3-5.el7.noarch

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.