Bug 132234

Summary: rpm rebuilddb does not rebuild the db properly
Product: Red Hat Enterprise Linux 3 Reporter: RHN APAC SE FedEx <rhn.apacse>
Component: rpmAssignee: Paul Nasrat <nobody+pnasrat>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 3.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-04-19 19:10:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description RHN APAC SE FedEx 2004-09-10 02:27:40 UTC
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.

Comment 1 Tim Powers 2004-09-10 02:33:52 UTC
Changing component to rpm since that's actually what you're having issues with.

Comment 2 Jeff Johnson 2004-09-10 09:03:59 UTC
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?

Comment 3 H. Pilkington 2004-12-09 16:47:53 UTC
http://www.rpm.org/hintskinks/repairdb/