Solved

Linux yum check integrity

Posted on 2014-09-04
6
1,772 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 38

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Upgrade BIOS / EUFI at Scale 4 71
Fuzzy search functionality DB2 UDB 3 33
SSH in linux 9 67
CentOs root password/fsck issue 7 33
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…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
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…

749 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