Any suggestions for checking installed packages on RHEL?
Does anyone have good suggestions on checking for specific packages
(e.g. perl-DBD-SQLite) installed on an RHEL host. I know I could just
run 'rpm -qa perl-DBD-SQLite') for each package, but I was wondering if
someone built something more thorough.
Re: Any suggestions for checking installed packages on RHEL?
This question is usually where I say that people shouldn't be checking if packages exist, they should be instead be managing packages with configuration management. That way you only need to monitor the results of one config run on a server rather than all the individual packages.
More topically, if you have a list of package names you can check them against the list from "rpm -qa" and alert. Here's a facter (docs.puppet.com/facter) fact which reports package versions for selected packages, you can do something similar in a monitoring script and add anything you want like missing package notification.