Install whois On CentOS Linux Using Yum

Attention: open in a new window. PDFPrintE-mail

 

[root@dev ~]# whois

 

-bash: whois: command not found

Above you can see that the whois command is not currently installed on this CentOS Linux server. Below we describe how to use yum to search for what package installs whois and then we install the correct package.

Use yum whatprovides To See What Installs A Specific Application On CentOS:

[root@dev ~]# yum whatprovides *bin/whois*
Loading "installonlyn" plugin
Setting up repositories
Reading repository metadata in from local files
jwhois.x86_64                            3.2.3-8.el5            base
Matched from:
/usr/bin/whois
[root@dev ~]#

As you can see above the jwhois package installs the whois application. The yum whatprovides command can be very useful for figuring out what package installs a specific application.

Install jwhois Package Via Yum On CentOS Linux:

[root@dev ~]# yum install jwhois
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
pgdg83                    100% |=========================| 1.9 kB    00:00
rpmforge                  100% |=========================| 1.1 kB    00:00
base                      100% |=========================| 2.1 kB    00:00
updates                   100% |=========================| 1.9 kB    00:00
addons                    100% |=========================|  951 B    00:00
ruby                      100% |=========================|  951 B    00:00
extras                                                          2.1 kB 00:00
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for jwhois to pack into transaction set.
jwhois-3.2.3-8.el5.x86_64 100% |=========================| 9.4 kB    00:00
---> Package jwhois.x86_64 0:3.2.3-8.el5 set to be updated
--> Running transaction check
Dependencies Resolved
=============================================================================
Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
jwhois                  x86_64     3.2.3-8.el5      base               95 k
Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 95 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): jwhois-3.2.3-8.el5 100% |=========================|  95 kB    00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: jwhois ######################### [1/1]
Installed: jwhois.x86_64 0:3.2.3-8.el5
Complete!

[root@dev ~]#