yum does not work consistently with RPMs with '0:' in the name

Solution Verified - Updated -

Issue

Installing RPMs with the '0:' in the name works, but doing a 'yum list installed rpm_name' fails if the name has a '0:' in it.

Fails on RHEL5.11 and 6.5

Example:

PKGNAME=$(repoquery "ypserv*" | sort -n  | tail -1)
yum -y install $PKGNAME
yum list installed $PKGNAME

The package will be installed and can be viewed in 'rpm -qa | grep ypserv'. The 'yum list installed PKGNAME' or 'rpm -q PKGNAME' does not show it. If you search for the name without the '0:', then both the yum list installed and rpm -q command work.

Environment

RHEL 5.11
RHEL 6.6

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