CentOS

CentOS 6,X 安装whois命令方法

作者:本站 2017-06-21 浏览:1770 标签: centos    whois    

  Centos 6.X的系统,或者某些精简的centos系统,默认没有whois命令。  使用yum install whois提示找不到这个包。写此文的目的是让linux新手熟悉这种情况下如何安装相应的命令。高手留步。  此时你可以使用

  Centos 6.X的系统,或者某些精简的centos系统,默认没有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包或源码包安装。


  • 2

  • 0

  • 1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.如有文章有版权争议,请给我们留言或者邮件告知我们,邮箱地址:028mw@126.com。