Linux and Nagios‎ > ‎

Yum show the contents of a package

posted 8 Jan 2018, 01:53 by Tristan Self   [ updated 8 Jan 2018, 01:57 ]
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 "" 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.