How to install the whois command on the CentOS system

  
                

In the CentOS system, most of the command systems have their own, but some commands require additional installation, such as the whois command, then how to install the whois command in CentOS? The following small series will give you a brief introduction to the installation of the whois command.

Environment: CentOS 6.0

Use yum install whois not able to find this package, then you can use yum search package or yum whatprovides filename to search for the appropriate package. Such as:

#yum search whois

……

============= Matched: whois ====== =======

jwhois.x86_64 : Internet whois/nicname client

perl-Net-Whois.noarch : Get and parse ”whois” domain data from InterNIC

perl-Net-Whois-IP.noarch : Perl extension for looking up the whois

: information for ip addresses

jakarta-commons-net.noarch : Internet protocol suite Java library

Of course you can use

#yum whatprovides whois //The output is a lot of content

#yum whatprovides */bin/whois*

129 Package excluded due to repository priority protections

jwhois-4.0-18.el6.x86_64 : Internet whois/nicname client

Repo : base

Matched from:

Filename : /usr/bin/whois

Sometimes it is useful to use wildcards.

#yum install jwhois

Installing : jwhois-4.0-18.el6.x86_64 1/1

After installation, there is a whois command under /usr/bin. Of course, you can also download the corresponding rpm package or source package to install.

The above is the introduction of the method of installing the whois command in CentOS. The whois command can be used to obtain the domain name and ip information. After installation, you can use the whois command.

Copyright © Windows knowledge All Rights Reserved