I don't think this is correct. I thought `rpm -i` would try to install a package... I thought the command was `rpm -q '#{name}'`

```
[root@rhel65 ~]# rpm -i pe-puppet
error: open of pe-puppet failed: No such file or directory
[root@rhel65 ~]# echo $?
1
[root@rhel65 ~]# rpm -q pe-puppet
pe-puppet-3.3.1.1-1.pe.el6.noarch
[root@rhel65 ~]# echo $?
0
[root@rhel65 ~]# rpm -qa pe-puppet   # much slower
pe-puppet-3.3.1.1-1.pe.el6.noarch
[root@rhel65 ~]# echo $?
0
[root@rhel65 ~]# rpm -qa | grep pe-puppet
pe-puppetdb-terminus-1.5.1.pe-1.el6.noarch
pe-puppet-enterprise-release-3.1.0-0.pe.el6.noarch
pe-puppet-3.3.1.1-1.pe.el6.noarch
pe-puppet-dashboard-2.0.12-1.pe.el6.x86_64
pe-puppet-server-3.3.1.1-1.pe.el6.noarch
pe-puppetdb-1.5.1.pe-1.el6.noarch
pe-puppet-license-cli-0.1.6-1.pe.el6.noarch
[root@rhel65 ~]# echo $?
0
```

I don't know about the backwards portability of `-q` though.