How to install whois using yum on CentOS
The whois command queries domain information directly. It helps administrators check domains from the command line, or write scripts to retrieve and inspect information such as domain expiry dates and ownership.
Installing whois with yum is easy. This article covers finding the package through installation, a process you can also apply to other packages.
Install whois
-
Find the required package with yum whatprovides followed by */command, here */whois, as shown:
[root@Ezylinux ~]# yum whatprovides */whois Loaded plugins: fastestmirror, presto Loading mirror speeds from cached hostfile epel/metalink | 4.8 kB 00:00 base | 3.7 kB 00:00 epel | 4.3 kB 00:00 extras | 3.5 kB 00:00 rpmforge | 1.9 kB 00:00 sogo-rhel6 | 951 B 00:00 updates | 3.5 kB 00:00 updates/primary_db | 4.6 MB 00:00 updates/filelists_db | 3.4 MB 00:00 jwhois-4.0-19.el6.x86_64 : Internet whois/nicname client Repo : base Matched from: Filename : /usr/bin/whois -
The output shows that jwhois-4.0-19.el6.x86_64 contains whois. Install it with yum install as shown below.
[root@Ezylinux ~]# yum install jwhois Loaded plugins: fastestmirror, presto Loading mirror speeds from cached hostfile ... Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package jwhois.x86_64 0:4.0-19.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: jwhois x86_64 4.0-19.el6 base 104 k Transaction Summary ================================================================================ Install 1 Package(s) Total download size: 104 k Installed size: 294 k Is this ok [y/N]: y Downloading Packages: Setting up and reading Presto delta metadata Processing delta metadata Package(s) data still to download: 104 k jwhois-4.0-19.el6.x86_64.rpm | 104 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : jwhois-4.0-19.el6.x86_64 1/1 Verifying : jwhois-4.0-19.el6.x86_64 1/1 Installed: jwhois.x86_64 0:4.0-19.el6 Complete!