I am on a process of creating a monitoring script that will check a list of yum repository/packages and making sure all packages don't have any errors. But before I do, I realize I need to know which command to run to see all errors on a particular package. A good example is I run
echo "n" | yum install -v <package>| grep "Error"
I either get all the errors or not. Is there an easier way to check a package in yum for errors??