SuperRoot
asked on
Linux yum check integrity
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??
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??
ASKER
Anything with word or phrase "Error: Package: <whatever words>"
rpm -Va ?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks all! All are good options unfortunately the system is not allowed to have other dependencies so i just created a script that will output echo "N" | yum install <package info> to a file and the script will look for specific words and delete the file. Works out great for what i need.
it has a list of mirrors to download packages from; if a mirror is not available it will try another