Find out which Yum package provides a command/utility

$ yum provides ‘nslookup’

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

* base: cosmos.illinois.edu

* extras: centos.mirrors.tds.net

* updates: cosmos.illinois.edu

base/7/x86_64/filelists_db                                                                                                                              | 6.2 MB  00:00:01     

extras/7/x86_64/filelists_db                                                                                                                            | 468 kB  00:00:00     

updates/7/x86_64/filelists_db                                                                                                                           | 5.3 MB  00:00:01     

32:bind-utils-9.9.4-29.el7.x86_64 : Utilities for querying DNS name servers

Repo        : base

Matched from:

Filename    : /usr/bin/nslookup

32:bind-utils-9.9.4-29.el7_2.1.x86_64 : Utilities for querying DNS name servers

Repo        : updates

Matched from:

Filename    : /usr/bin/nslookup

32:bind-utils-9.9.4-29.el7_2.2.x86_64 : Utilities for querying DNS name servers

Repo        : updates

Matched from:

Filename    : /usr/bin/nslookup

32:bind-utils-9.9.4-29.el7_2.3.x86_64 : Utilities for querying DNS name servers

Repo        : updates

Matched from:

Filename    : /usr/bin/nslookup

32:bind-utils-9.9.4-29.el7_2.4.x86_64 : Utilities for querying DNS name servers

Repo        : updates

Matched from:

Filename    : /usr/bin/nslookup

and hence we tell that nslookup command is provided in the bind-utils yum package

Leave a Reply

Your email address will not be published. Required fields are marked *

five × 3 =