rpm tips
 
RPM

rpm2cpio [rpm_name] | cpio -dvi

When things get screwy, try:
rpm --rebuilddb

If RPM is hanging, try this:
rm -f /var/lib/rpm/__db*
rpm --rebuilddb

Updated Oct 25, 2016