红联Linux门户
Linux帮助

CentOS如何安装whois命令

发布时间:2014-07-15 09:47:25来源:红联作者:velcbo
最近在测试CDN,在配置dns需要whois命令,测试使用的系统是CentOS 6.0,默认没有whois命令。

使用yum install whois提示找不到这个包。写此文的目的是让linux新手熟悉这种情况下如何安装相应的命令。高手留步。

此时你可以使用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包或源码包安装。

来源:Linux社区
文章评论

共有 0 条评论