This post is older than a year. Consider some information might not be accurate anymore.
Seeing this Rpmdb checksum is invalid: dCDPT(pkg checksums)
in RedHat or CentOS?
These commands can help you fix the problem:
# needs root permission
rpm --rebuilddb
# clean cache
yum clean all