On 8/30/05, John Fox <fedora@xxxxxxxxxxxxxxxxx> wrote: > > Hi, > > Having problems with yum in Centos3 this is the error message: > > "rpmdb: Program version 4.2 doesn't match environment version > error: db4 error(22) from dbenv->open: Invalid argument > error: cannot open Packages index using db3 - Invalid argument > (22) This is an RPM/RHEL3u4 problem, not a yum problem. Googling your error message found the problem directly. http://www.google.com/search?hl=en&safe=off&q=rpmdb:+Program+version+4.2+doesn%27t+match+environment+version+error:+db4+error(22)+from+dbenv-&spell=1 The solution is the age old "rpm, rinse, repeat": http://www.linuxquestions.org/questions/archive/31/2005/01/2/273856 # rm -rf /var/lib/rpm/__db* # rpm --rebuilddb Enjoy! Greg