报错:command not found

2019年1月17日 | 分类: 【技术】

【命令】

输入:

whois

输出:

-bash: whois: command not found

询问需要安装什么包:

yum whatprovides *bin/whois*

输出:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.unixheads.org
 * epel: mirror.sjc02.svwh.net
 * extras: mirror.linuxfix.com
 * updates: mirror.pac-12.org
jwhois-4.0-45.el7.x86_64 : Internet whois/nicname client
Repo        : epel
Matched from:
Filename    : /usr/bin/whois



whois-5.1.1-2.el7.x86_64 : Improved WHOIS client
Repo        : base
Matched from:
Filename    : /usr/bin/whois.md
Filename    : /usr/bin/whois

或者:

yum search whois

输出:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.unixheads.org
 * epel: mirror.sjc02.svwh.net
 * extras: mirror.linuxfix.com
 * updates: mirror.pac-12.org
======================================================================================== N/S matched: whois =========================================================================================
jwhois.x86_64 : Internet whois/nicname client
perl-Net-Whois-IP.noarch : Perl extension for looking up the whois information for ip addresses
perl-Net-Whois-Raw.noarch : Get Whois information for domains
pwhois.noarch : Perl written whois client
whois.x86_64 : Improved WHOIS client

  Name and summary matches only, use "search all" for everything.

可见 jwhois 和 whois 两个包都可以。