Command Not Found

使用最小安装的centos 7时有很多命令工具尚未被安装,例如 ifconfig, 那怎知道此命令在那个package里面呢?

# yum whatprovides ifconfig
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.btte.net
 * extras: mirrors.skyshe.cn
 * updates: mirrors.skyshe.cn
net-tools-2.0-0.17.20131004git.el7.x86_64 : Basic networking tools
Repo        : base
Matched from:
Filename    : /sbin/ifconfig

接下来就可以进行安装

# yum install net-tools
原文地址:https://www.cnblogs.com/jHenry/p/4246707.html