yum's "yum history" feature is an often overlooked but very powerful utility in Linux.
It can be used to rollback/redo/undo yum transactions to a state where everything was normal.
yum history
The "yum history list" command, when run without any parameters, produces output similar to the one shown below.
"yum history" or "yum history list" displays the last 20 yums by default.
# yum history list