YUM WHATPROVIDES COMMAND MAGIC TO IDENTIFY WHICH IS THE REAL NAME OF PACKAGE TO INSTAL
=================================================
[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:
[root@dev ~]#
/usr/bin/whois
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