Product SiteDocumentation Site

5.9.2. Search by file or functionality

yum provides command or its alias yum whatprovides is another way to search the package database. In this case, it searches for the package that provide some functionality or package file. Use a specific name or a file-glob wildcards syntax to list the available or installed packages that provides the functionality or desired file.
$ su -c "yum provides /etc/httpd/conf/httpd.conf"
...
httpd-2.2.16-1.fc14.x86_64 : Apache HTTP Server
Repo        : fedora
Matched from:
Filename    : /etc/httpd/conf/httpd.conf

httpd-2.2.17-1.fc14.x86_64 : Apache HTTP Server
Repo        : updates
Matched from:
Filename    : /etc/httpd/conf/httpd.conf

httpd-2.2.17-1.fc14.x86_64 : Apache HTTP Server
Repo        : installed
Matched from:
Other       : Provides-match: /etc/httpd/conf/httpd.conf