Link to home
Start Free TrialLog in
Avatar of SuperRoot
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??
Avatar of Seth Simmons
Seth Simmons
Flag of United States of America image

what errors are you looking at?
it has a list of mirrors to download packages from; if a mirror is not available it will try another
Avatar of SuperRoot
SuperRoot

ASKER

Anything with word or phrase "Error: Package: <whatever words>"
rpm -Va ?
SOLUTION
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.