Erik's WIki
rm -f /var/lib/rpm/__db*
rpm -vv --rebuilddb

See also.