Solved

Linux yum check integrity

Posted on 2014-09-04
6
1,622 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 62

Expert Comment

by:gheist
ID: 40305726
rpm -Va ?
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 37

Assisted Solution

by:Gerwin Jansen, EE MVE
Gerwin Jansen, EE MVE 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Video Streaming 6 73
Oracle 10g standard edition server with 4 processors 3 54
Linux VM 6 88
Using Linux to replace Windows Server 2008 R2 for network drives 5 73
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

770 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