Check Application Versions from Command Line (for use with puppet)

There are a couple of other methods of doing this, but this is the one that works for me.

Firstly, since system_profiler does not have the quickest of execution times, we only run it once and redirect it’s output to a static file for grepping.

Then we query the temp file for a list of all the software we are interested in (this is for administrative purposes only)

Then the actual useful part

 

If people are interested I will wrap this all up into a puppet manifest in a later post.