Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am inheriting a Centos 5 box and I'd like to get an idea of what rpms have been installed outside of yum.

Bonus: How can I audit that RPMs installed with yum to make sure that they are not corrupt.

share|improve this question

closed as off topic by MikeyB, Ward, Michael Hampton, Scott Pack, Iain Sep 24 '12 at 21:15

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

does diffing rpm -qa against /var/log/yum.log work ? - that's just a guess. – Sirex Feb 2 '12 at 9:31
up vote 1 down vote accepted

If a package was installed without yum, yum info lacks From repo field.

Here's a package installed from repositories:

Installed Packages
Name        : java-1.6.0-openjdk
Arch        : x86_64
Epoch       : 1
Version     :
Release     :
Size        : 81 M
Repo        : installed
From repo   : updates
Summary     : OpenJDK Runtime Environment

Here's a package installed with rpm command:

Installed Packages
Name        : jre
Arch        : x86_64
Version     : 1.7.0
Release     : fcs
Size        : 46 M
Repo        : installed
Summary     : Java(TM) Platform Standard Edition Runtime Environment


for each in `rpm -qa`; do yum info $each | egrep "^(Name|Repo|From repo)"; echo; done >/tmp/packages.txt

And then see from /tmp/packages.txt which packages lack From repo line.

share|improve this answer

rpms installed / updated by yum are logged in /var/log/yum.log. All other have been either installed during the centos install process or with the rpm command.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.