Can the rpm command be used to show me what files an RPM file has installed?

Updated -

The rpm command can utilize the query option filesbypkg to get a list of all files installed by an individual package. Typical usage of an installed RPM package would be:

rpm -q --filesbypkg <package-name>

For example, if you wanted to see all the files installed by the redhat-release package, you would see output simi...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content