Fedora yum error: rpmdb: cleanup

When yum updates fail on Fedora I have found the following commands to solve many problems:

yum install yum-utils
yum-complete-transaction
yum clean metadata
yum clean all
package-cleanup --dupes (and check if only the dupes are listed)
package-cleanup --cleandupes
yum check (and see if it stops without any errors).