How can I tell what files are in a RPM package and where RPM puts these files?

Updated -

To determine what files are in a RPM package run an RPM query with the -l or --list option to list the files in the package.

Syntax:

rpm -ql [pacakage name]







rpm -q --list [pacakage name]

example:

$rpm -ql bash
/bin/bash
/bin/bash2
/bin/sh
/etc/skel/.bash_logout
/etc/skel/.bash_profile
/etc/skel/.bashrc
/usr/bin/bashbug
/usr/lib/bash
/...

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