Description of problem: rpm --rebuilddb doesnot recover the rpmdb. db_verify gives error "Program version 4.1.25 doesn't match the environment version 4.1.24" Version-Release number of selected component (if applicable): Most rpm or applications shown "not installed" from the "Add/Remove Applications" menu option. How reproducible: Steps to Reproduce: 1. cd /var/lib/rpm 2. rm -f __db.00* 3. rpm --rebuilddb -vv 4. db_verify Actual results: Program version 4.1.25 doesn't match the environment version 4.1.24 Expected results: rpm database rebuilt Additional info: System still runs fine. Do not want to re-install as the Oracle is running.
Changing component to rpm since that's actually what you're having issues with.
What does the following say: cd /var/lib/rpm rm -f __db* /usr/lib/rpm/rpmdb_verify Packages I'm also unsure why db_verify is 4.1.24. Could you supply the output of rpm -qf `which db_verify` to identify which package installed db_verify?
http://www.rpm.org/hintskinks/repairdb/