title: A programmatic access to RPM apis/calls in golang
body: <p>I'm struggling to find a native rpm binding for golang, all I found is <a href="https://pypi.org/project/rpm" rel="nofollow noreferrer">this</a> and a go <a href="https://github.com/cavaliercoder/go-rpm" rel="nofollow noreferrer">package</a>.</p>
  
  <p>A go package looks interesting but it fetches details from a rpm src package, which I don't have. I wanted to query rpm database at /var/lib/rpm/* </p>
  
  <p>Need behaviour similar to,</p>
  
  <ol>
  <li><code>rpm -qa | grep NAME</code></li>
  <li><code>rpm -qil NAME //for meta-data</code></li>
  </ol>
  
  <p>Please provide a pointer or suggest alternatives.</p>