title: CentOS equivalent of dpkg -s
body: <p>I'm adapting a prepare script for CentOS that was previously written for Ubuntu.</p>
  
  <p>In the Ubuntu script, the command <code>dpkg -s {some program}</code> is called frequently. For example, one such command is <code>dpkg -s snmpd</code> to check if the SNMP Daemon is installed.</p>
  
  <p>What is the equivalent in CentOS? I know that RPM is the package manager. The command <code>rpm -q</code> is similar, but it looks for packages and not programs.</p>
  
  <p>For example, running <code>rpm -q snmpd</code> returns:</p>
  
  <pre><code>package snmpd is not installed
  </code></pre>
  
  <p>My question is, what is the CentOS equivalent of the Ubuntu command <code>dpkg -s</code> ?</p>