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


    新安装的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命令了!

  • 相关阅读:
    生成唯一流水码
    搜索类
    数字转中文
    字符串转数组工具类
    类转换
    P1112 区间连续段
    P1113 同颜色询问
    Turtlebot3 机器学习
    Turtlebot2进阶教程
    turtlebot A2
  • 原文地址:https://www.cnblogs.com/llius/p/5114426.html
Copyright © 2020-2023  润新知