title: How do I extract the contents of an rpm?
body: <p>I have an rpm and I want to treat it like a tarball. I want to extract the contents into a directory so I can inspect the contents. I am familiar with the querying commands of an uninstalled package. I do not simply want a list of the contents of the rpm. i.e.</p>
  
  <pre><code>$ rpm -qpl foo.rpm
  </code></pre>
  
  <p>I want to inspect the contents of several files contained in the rpm. <strong>I do not want to install the rpm.</strong> I am also aware of the rpms ability to do additional modifictions in the %post sections, and how to check for those. i.e.</p>
  
  <pre><code>$ rpm -qp --scripts foo.rpm
  </code></pre>
  
  <p>However in this case that is of no concern to me.</p>