您的位置:首页 > 运维架构 > Linux

最小化安装CentOS7,没有ifconfig命令---yum search command_name搜索未知包名

2016-01-08 20:41 751 查看
新安装的CentOS7系统,想查询ip的时候,发现没有ifconfig这个命令:

-bash: ifconfig: 未找到命令


yum安装:

没有可用软件包 ifconfig


既然知道命令,搜索一下命令来源:

# yum search ifconfig
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* extras: mirrors.aliyun.com
* updates: ftp.sjtu.edu.cn
======================================================== 匹配:ifconfig ========================================================
net-tools.x86_64 : Basic networking tools


找到包就好了:

# yum install -y net-tools.x86_64


这样可以用ifconfig命令了!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: