About how to discriminate whether the libvirt package includes incompatibility problems or not.

Solution Verified - Updated -

Issue

  • Does Red Hat provide the program for discriminating whether the version of the package is older or newer?
  • The way to confirm by using the commands included in RHEL such as rpm(1).
  • The way to confirm by using a program written in C.
  • The way to confirm by using a program written in Python.
  • "rpm" command right for discriminating whether the version of the package is older or newer?
Ex) How to compare the version of libvirt-0.9.4-23.el6_2.4 and 
    libvirt-0.9.4-23.el6

  # rpm --eval '%{lua:print(rpm.vercmp("0.9.4-23.el6_2.4","0.9.4-23.el6"))}'
  1

Output result(is the following right?)
  -1: the version of first argument is earlier.
   0: the version of packages are same. 
   1: the version of first argument is later.
  • Is the above usage supported by Red Hat?

Environment

  • Red Hat Enterprise Linux 6 Service Pack 2GA
  • Architecture: x86_64
  • Kernel Version: 2.6.32-220.el6
  • Related Package Version: libvirt-0.9.4-23.el6_2.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content