From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows NT 5.0; U) Opera 7.11 [en] Description of problem: After trying to install a self-built package, the rpm database seems to be corrupted. rpm -q tells that the package is not installed, rpm -Uvh <package> tells the following: Preparing... ########################################### [100%] package <package> is already installed rpmdb: Overflow item incomplete on page 3492 error: db4 error(-30979) from db->verify: DB_VERIFY_BAD: Database verification failed rpm --rebuilddb results in a segmentation fault. Version-Release number of selected component (if applicable): rpm-4.0.4-7x.18 How reproducible: Always Steps to Reproduce: 1. 2. 3. Additional info:
The following will verify the problem (you need db4-utils): db_verify /var/lib/rpm/Packages Fix is to dump and reload Packages, then rebuild the indices cd /var/lib/rpm mv Packages Packages-ORIG db_dump Packages-ORIG | db_load Packages rpm --rebuilddb -vv Reopen if above does not solve the problem.