Package install path

Is there a way to query the rpm database via Relevance to identify where an rpm package was installed to? I’ve checked here and no go - https://developer.bigfix.com/relevance/search/?query=rpm

It can be done from bash with rpm -ql but I can’t find anything similar with “packages of rpm”

Hi cstoneba,

In the case you didn’t find a solution, this is the relevance to use:

installed files of package “BESAgent” of rpm

as you can see, you need to get first a package object from the rpmdatabase, in this example I am looking for the installed files of besagent rpm, then you can look for the installed files of the package object, retrieving the same result of the bash command “rpm -ql”

for more details look here:
rpmdatabase: https://developer.bigfix.com/relevance/reference/rpmdatabase.html
package: https://developer.bigfix.com/relevance/reference/package.html

Let me know if you have other questions :slight_smile:

1 Like

that’s it. thanks much

1 Like