Sometimes your want to see the files that are contained within a specific yum/rpm package before you install it, or sometimes even after. Kind of like a reverse lookup for the whatprovides function.
Here’s how to do it:
List files in a yum package
This is the method to use to get the contents of the package yum matches to your package query.
repoquery -lq <packageName> |
For example:
repoquery -lq repoquery -lq crontabs# /etc/cron.daily# /etc/cron.hourly# /etc/cron.monthly# /etc/cron.weekly# /etc/crontab# /usr/bin/run-parts# /usr/share/man/man4/crontabs.4.gz |
List files in an rpm package
This is the method to use to point to a specific RPM either in a specific repository or on your local file system.
rpm -qlp <packageName: local or http> |
For example:
rpm -qlp http://mirror.aarnet.edu.au/pub/centos/6.3/os/x86_64/Packages/crontabs-1.10-33.el6.noarch.rpm# /etc/cron.daily# /etc/cron.hourly# /etc/cron.monthly# /etc/cron.weekly# /etc/crontab# /usr/bin/run-parts# /usr/share/man/man4/crontabs.4.gz |
No comments:
Post a Comment