ifconfig command not found on CentOS 7
A few days back I minimal installed CentOS 7 (x86_64) on my local system. On and Before CentOS 6.x releases,I was habitual to use the command called ifconfig
. The ifconfing
command helps to provide information about the ethernet devices on your system.
On CentOS 6.x and before, ifconfig command by default used to shipped. Whereas in minimal installed CentOS 7 , I have not found ifconfig command.
This will give you the error , ifconfig command not found.
To get the ifconfig command into our system , run the below given command
yum install net-tools
Now check the ifconfig command and its path in system (which
and whereis
command will help)
ifconfig ifconfig -a which ifconfig whereis ifconfig
How I got to know net-tools package need to be installed
Using yum command with provides
or whatprovides
options help to give you list of package which is required for that particular command.
As per man page of yum :
provides or whatprovides
Is used to find out which package provides some feature or file. Just use a specific name or a file-glob-syntax wildcards to list the packages available or installed that provide that feature or file.
We have used the below given command to find which package provides the ifconfig command.
yum provides ifconfig
[root@testserver7 ~]# yum install net-tools
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.vodien.com
* extras: mirror.vodien.com
* updates: mirror.vodien.com
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 base 304 k
Transaction Summary
===============================================================================================================================================================================================
Install 1 Package
Total download size: 304 k
Installed size: 917 k
Is this ok [y/d/N]: y
Downloading packages:
net-tools-2.0-0.17.20131004git.el7.x86_64.rpm | 304 kB 00:00:01
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!
[root@testserver7 ~]#
Recent Comments