Yum show the contents of a package


Let’s say you’ve identified a dependency that is needed on your machine, but you don’t know what package will provide the required file, you can use the “yum search <name> | grep <more granular name>” to narrow it down, but to see inside the package before install you can run the below, in my example I was looking for what provided the “gettext.pm” file, the package “perl-gettext” looked like it might, to be sure I ran:

# repoquery -l perl-gettext









And as you can see its listed, so this is the right package to install.

Leave a Reply

Your email address will not be published.