You could try to remove duplicate packages with:
package-cleanup --dupes | tail -n +2 | sort --version-sort | awk 'NR % 2 {print "rpm -e --justdb --nodeps " $1 } !(NR % 2) {match($0, "-[0-9]");print "yum -y reinstall " substr($0,0,RSTART-1)}' | sh
If you system doesn’t have the package-cleanup command please install it with:
yum install -y yum-utils