• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2742
  • Last Modified:

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??
0
SuperRoot
Asked:
SuperRoot
2 Solutions
 
Seth SimmonsSr. Systems AdministratorCommented:
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
0
 
SuperRootAuthor Commented:
Anything with word or phrase "Error: Package: <whatever words>"
0
 
gheistCommented:
rpm -Va ?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
Gerwin Jansen, EE MVETopic Advisor Commented:
yum verify-all
0
 
madunixChief Information Security Officer Commented:
You can verify all installed packages against the RPM Database,
# rpm -Va

You can also install yum-plugin-verify package,
# yum install yum-plugin-verify

This plugin extends yum with some commands that give verification information on the installed system, much like rpm -V. To get more details on it you can refer man page of yum-verify.

# man yum-verify
0
 
SuperRootAuthor Commented:
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.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now