I am in the process validating multiple outputs from an array using chef inspec.
Below is the linux command to generate the output:
yum info $(rpm -qa|grep pos