yum Command: List The Contents (Files) Of A Package on Linux

Originally published at: https://www.cyberciti.biz/faq/rhel-centos-fedora-list-contents-of-package-using-yum-command/

The rpm -qi command list the files of a package. How do I use yum command to list the contents of a package under a CentOS or RHEL installed on IBM server hardware? How to list the contents of a package using ?