## yum 查看哪个包提供命令provides

yum 查看哪个包提供命令

  • yum provides ifconfig 查看哪个包提供了ifconfig命令

使用ifconfig提示命令找不到解决方法

  1. 执行 ip addr 查看网卡名称,我这里的是ens33
  2. 执行 cd /etc/sysconfig/network-scripts/ 进入该目录查看网卡文件
  3. 执行 vi ifcfg-ens33 修改网卡文件 将 ONBOOT=no 改为 ONBOOT=yes
  4. 执行 service network restart 重启网卡服务
  5. 执行 yum provides ifconfig 查看哪个包提供 ifconfig 命令 可以看到net-tools提供该命令
  6. 执行 yum install net-tools 安装 net-tools
  7. 执行 ifconfig 命令 可以使用

猜你喜欢

转载自blog.csdn.net/qq_39309714/article/details/85255175