redhat7.0安装ifconfig

问题描述:

Setup is unable to find the "ifconfig" program on your machine.  Please make 
sure it is installed.  Do you want to specify the location of this program by 
hand? [yes]

    根据提示,发现rhel7.0缺少命令ifconfig(网络相关命令)

问题解决:

[root@localhost ~]# yum search ifconfig    ###搜索yum
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
========================================================== Matched: ifconfig ==========================================================
net-tools.x86_64 : Basic networking tools
[root@localhost ~]# 
[root@localhost ~]# yum install -y net-tools   ###安装net-tools
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package net-tools.x86_64 0:2.0-0.17.20131004git.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================================================
 Package                      Arch                      Version                                       Repository                  Size
=======================================================================================================================================
Installing:
 net-tools                    x86_64                    2.0-0.17.20131004git.el7                      rhel7.0                    304 k

Transaction Summary
=======================================================================================================================================
Install  1 Package

Total download size: 304 k
Installed size: 917 k
Downloading packages:
net-tools-2.0-0.17.20131004git.el7.x86_64.rpm                                                                   | 304 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : net-tools-2.0-0.17.20131004git.el7.x86_64                                                                           1/1 
  Verifying  : net-tools-2.0-0.17.20131004git.el7.x86_64                                                                           1/1 

Installed:
  net-tools.x86_64 0:2.0-0.17.20131004git.el7                                                                                          

Complete!
原文地址:https://www.cnblogs.com/xiaochina/p/8460554.html