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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.