> ## Content Index
> Fetch the complete content index at: https://kudithipudi.org/llms.txt
> Use this file to discover other available public pages before exploring further.

# HOW TO : Search which package contains a filename
- URL: https://kudithipudi.org/how-to-search-which-package-contains-a-filename/
- Published: 2016-05-30T22:18:41.000Z
- Updated: 2016-05-30T22:18:41.000Z
- Description: If you are using a Linux system that uses yum for package management (like Fedora, Centos, RHEL), you can use the following command to find out...
- Author: admin
- Tags: HOWTO, Linux, Technology, Uncategorized, commandfu, howto, linux, yum, #wp, #wp-post, #Import 2026-08-23 02:32

If you are using a Linux system that uses yum for package management (like Fedora, Centos, RHEL), you can use the following command to find out which package contains a file. This is useful when you want to figure out which package to install. For example, dig (DNS utility) doesn’t come pre-installed on the system. And running “sudo yum install dig” doesn’t do anything.

sudo yum whatprovides '\*/dig'

This returns

Loaded plugins: fastestmirror  
 Loading mirror speeds from cached hostfile  
 32:bind-utils-9.8.2-0.47.rc1.el6.x86\_64 : Utilities for querying DNS name servers  
 Repo : base  
 Matched from:  
 Filename : /usr/bin/dig

breaking down the command options

**whatprovides** : Is used to find out which package provides some feature or file. Just use a specific name or a file-glob-syntax wildcards to list the packages available or installed that provide that feature or file.