How to install the whois command on CentOS system

Time: 2017-05-22Source: Huajun InformationAuthor: Neal

In the CentOS system, most of the command systems are built-in, but some commands require additional installation, such as the whois command. So how to install the whois command in CentOS? The editor below will give you a brief introduction to the installation of the whois command.

 How to install the whois command on CentOS system

Environment: CentOS 6.0

Use yum install whois to prompt that the package cannot be found. At this time, you can use yum search package or yum whatprovides filename to search for the corresponding software package. like:

#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 //There is a lot of output at this time

#yum whatprovides */bin/whois*

129 packages 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 in the system /usr/bin. Of course, you can also download the corresponding rpm package or source code package for installation.

The above is an introduction to how to install the whois command on CentOS. The whois command can be used to obtain domain name and IP information. After installation, you can use the whois command.

Related articles更多>>