There is a couple of ways to find the list of files installed by an RPM package. We can use the “rpm” command or use “repoquery” provided by the yum-utils package
- Using “repoquery”
I’ve picked the yum-cron package as it has lesser number of files and hence easier to read output
repoquery is one of the tools installed by the yum-utils package which as obvious queries the YUM repos for the file list. Advantage of using the repoquery over rpm is that it can query packages that are not installed as well as against “rpm” which only can provide file listing for installed packages.
[root@c7vanilla ~]# rpm -ql yum-cron /etc/cron.daily/0yum-daily.cron /etc/cron.hourly/0yum-hourly.cron /etc/yum/yum-cron-hourly.conf /etc/yum/yum-cron.conf /usr/lib/systemd/system/yum-cron.service /usr/sbin/yum-cron /usr/share/doc/yum-cron-3.4.3 /usr/share/doc/yum-cron-3.4.3/COPYING /usr/share/man/man8/yum-cron.8
- Using “rpm”
[root@c7vanilla ~]# rpm -ql yum-cron /etc/cron.daily/0yum-daily.cron /etc/cron.hourly/0yum-hourly.cron /etc/yum/yum-cron-hourly.conf /etc/yum/yum-cron.conf /usr/lib/systemd/system/yum-cron.service /usr/sbin/yum-cron /usr/share/doc/yum-cron-3.4.3 /usr/share/doc/yum-cron-3.4.3/COPYING /usr/share/man/man8/yum-cron.8