[CentOS] Yum/rpm error (rpmdb versioning issue?)

Wed Jul 20 11:02:16 UTC 2005
Martin Hamant <mh at accelance.fr>

Le Wed, 20 Jul 2005 06:39:05 -0400
Chris Mauritz <chrism at imntv.com> écrivait:

> Has anyone seen this before?

Yes. It's because of an update of libdb ...
So you have to delete __db.XXX files in /var/lib/rpm directory, and do
a rpm --rebuilddb and it should be fine.

> 
> [root at shelob rpm]# yum update
> rpmdb: Program version 4.2 doesn't match environment version
> error: db4 error(22) from dbenv->open: Invalid argument
[...]

-- 
Martin