告诉CentOS系统安装whois命令的详细步骤

时间:2015-05-21690举报小编:123

    今天给小伙伴们讲下CentOS系统安装whois命令的方法,有兴趣的朋友学习下吧!


    环境:CentOS 6.0

    使用yum install whois提示找不到这个包,此时你可以使用yum search package或yum whatprovides filename来搜索相应的软件包。如:

    #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

    当然您可以使用

    #yum whatprovides whois //此时输出的内容很多

    #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

    有的时候使用通配符很有用。

    #yum install jwhois

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

    安装后系统/usr/bin下有whois命令啦。当然您还可以下载相应的rpm包或源码包安装。

    上面就是CentOS安装whois命令的方法介绍了,whois命令可用来获取域名和ip信息,安装后你就可以使用whois命令了。