TIP: Figuring out which RPM’s contain which files
by daven on Feb.18, 2009, under General System Administration, Quick Tips
If you ever need to know what files an RPM will install or what RPM’s “own” a file on your system then the rpm command has a few switches that can help you out.
If you want to know which file’s an installed RPM’s owns:
rpm -ql
If you have an RPM file and want to know what file’s it will create or modify before you install it:
rpm -qpl
And finally if you have a file or directory and you want to know which RPM installed it:
rpm -qf