How to install WHOIS on Centos 7

Just for my own reference, to install WHOIS client on your Centos 7 server, you need to do some extra step. A simple yum install whois or yum install jwhois could not work, as you could get the following error: No package jwhois available.

So, in order to be able to install WHOIS, type the following command:

yum whatprovides *bin/whois*

The response will be:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
 * epel:
 * extras:
 * updates:
base/7/x86_64/filelists_db                               | 5.8 MB     00:00
whois-5.1.1-2.el7.x86_64 : Improved WHOIS client
Repo        : base
Matched from:
Filename    : /usr/bin/
Filename    : /usr/bin/whois
Then type:
yum install whois
And you should get it OK:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
 * epel:
 * extras:
 * updates:
Resolving Dependencies
--> Running transaction check
---> Package whois.x86_64 0:5.1.1-2.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
 Package         Arch             Version                  Repository      Size
 whois           x86_64           5.1.1-2.el7              base            72 k
Transaction Summary
Install  1 Package
Total download size: 72 k
Installed size: 222 k
Is this ok [y/d/N]: y
Downloading packages:
whois-5.1.1-2.el7.x86_64.rpm                               |  72 kB   00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : whois-5.1.1-2.el7.x86_64                                     1/1
  Verifying  : whois-5.1.1-2.el7.x86_64                                     1/1
  whois.x86_64 0:5.1.1-2.el7
Enjoy using whois app!

Rate this article: 

Average: 2.2 (29 votes)




Samples of work done for me or my customers, for free or not, like websites, repairs, photography etc.
View all my recent work



I'm giving away some knowledge in my areas of expertise. Did you like something here? Share it please!
View all tutorials



Useful Linux commands or other code snippets I often use.
View my useful shortcuts



Few bookmarks I find useful. Do you want website here? Give me a good reason and I can help you.
View my favourite web resources

About me

Hi there! My name is Marius Cârneală.

About me?

Loving husband, dad of one two three, drone pilot, web designer and administrator, SEO specialist, IT support guy, electronic hobbyist and content writer. This list is open.