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:

[adsense:336×280:6928840684]

yum whatprovides *bin/whois*

The response will be:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.checkdomain.de
 * epel: mirrors.n-ix.net
 * extras: mirror.checkdomain.de
 * updates: mirror.checkdomain.de
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/whois.md
Filename    : /usr/bin/whois
 
Then type:
 
[adsense:336×280:5172905888]
 
yum install whois
 
And you should get it OK:
 
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.checkdomain.de
 * epel: mirrors.n-ix.net
 * extras: mirror.checkdomain.de
 * updates: mirror.checkdomain.de
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
================================================================================
Installing:
 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
 
Installed:
  whois.x86_64 0:5.1.1-2.el7
 
Complete!
 
Enjoy using whois app!
 

LĂSAȚI UN MESAJ

Vă rugăm să introduceți comentariul dvs.!
Introduceți aici numele dvs.
Captcha verification failed!
Scorul utilizatorului captcha a eșuat. va rog sa ne contactati!

Acest site folosește Akismet pentru a reduce spamul. Află cum sunt procesate datele comentariilor tale.

- Advertisement -spot_img
Noutăți

Articole similare

- Advertisement -spot_img