≡ Menu

Error rpmdb: Program version 4.2 doesn't match environment version

If you run yum update on your centOS and get an error like this:

You can fix this eror with this command:

1. Check for processes holding the rpm database open:

If it finds any, kill -9 them all.

2. Delete any temporary DB files:

3. Rebuild your RPM database:

If you still have problems, a reboot is probably quickest, then repeat steps 2 and 3 above.

{ 0 comments… add one }

Leave a Comment

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.