This is a little tool that compares a list of packages with versions against a Linux installation.
a sample file is the one below https://github.com/ppissias/pscanner/blob/master/src/test/resources/package-list-example.xml
it will execute a series of rpm -q
commands and write a comparison report