Solved

Linux yum check integrity

Posted on 2014-09-04
6
1,469 Views
Last Modified: 2014-09-07
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
Comment
Question by:SuperRoot
6 Comments
 
LVL 34

Expert Comment

by:Seth Simmons
ID: 40305039
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
 
LVL 1

Author Comment

by:SuperRoot
ID: 40305056
Anything with word or phrase "Error: Package: <whatever words>"
0
 
LVL 61

Expert Comment

by:gheist
ID: 40305726
rpm -Va ?
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 37

Assisted Solution

by:Gerwin Jansen
Gerwin Jansen earned 250 total points
ID: 40306933
yum verify-all
0
 
LVL 25

Accepted Solution

by:
madunix earned 250 total points
ID: 40308425
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
 
LVL 1

Author Comment

by:SuperRoot
ID: 40308652
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now