Install whois On CentOS Linux Using Yum
Last Updated on Thursday, 06 September 2012 09:48
Written by idnic
Thursday, 06 September 2012 09:45
Â
[root@dev ~]
Â
- 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:
Loading "installonlyn" plugin |
Reading repository metadata in from local files |
jwhois.x86_64Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 3.2.3-8.el5Â Â Â Â Â Â Â Â Â Â Â base |
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:
Loading "installonlyn" plugin |
Setting up Install Process |
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 |
--> 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 |
============================================================================= |
Package                Arch      Version         Repository       Size |
============================================================================= |
jwhois                 x86_64    3.2.3-8.el5     base              95 k |
============================================================================= |
Install     1 Package(s) |
Update      0 Package(s) |
Remove      0 Package(s) |
Total download size: 95 k |
(1/1): jwhois-3.2.3-8.el5 100% |=========================|Â 95 kBÂ Â Â 00:00 |
Finished Transaction Test |
Transaction Test Succeeded |
Installed: jwhois.x86_64 0:3.2.3-8.el5 |
[root@dev ~]