how to fix rpm database

Michael Schwendt mschwendt at gmail.com
Wed Aug 31 08:19:05 UTC 2011


On Wed, 31 Aug 2011 00:41:18 -0500 (CDT), MH (Michael) wrote:

> yum and rpm have different ideas about wether three packages are installed:
> 
> [root at localhost log]# rpm -V 1:tk-8.5.9-2.fc14.i686
> 1:tix-8.4.3-5.fc13.i686 1:numpy-1.4.1-6.fc14.i686
> package 1:tk-8.5.9-2.fc14.i686 is not installed
> package 1:tix-8.4.3-5.fc13.i686 is not installed
> package 1:numpy-1.4.1-6.fc14.i686 is not installed

The leading 1: is the Epoch, which is usually hidden in RPM and not
displayed unless you query package details or the Epoch explicitly. E.g.

  $ rpm -qi tix | grep Epoch
  Epoch       : 1
  $ rpm -q --qf %{epoch}\\n tix
  1

Omit it when querying RPM. Run just

  rpm -V tk-8.5.9-2.fc14.i686 tix-8.4.3-5.fc13.i686 numpy-1.4.1-6.fc14.i686

or leave out the version-release.arch part. Notice that RPM does not
print the Epoch, try:

  rpm -q tk tix numpy


More information about the users mailing list