Fix 'ifconfig' Command Not Found in CentOS 7 Minimal Installation

In CentOS 7 minimal installations, ifconfig is not included by default. It’s part of the net-tools package, which is now considered deprecated.

Why 'ifconfig' is Missing

Before installing new packages, make sure your system is up-to-date. Run: sudo yum update

Update Your System

To get ifconfig, install net-tools with the command: sudo yum install net-tools:

Install net-tools Package

Once installation completes, check if ifconfig is available by typing: ifconfig

Verify the Installation

Instead of ifconfig, CentOS 7 suggests using the ip command, which is more advanced and provides similar functionalities: ip a

Install Required Libraries

For future setups, consider adding net-tools to your bootable CentOS image if you require ifconfig frequently.

Add net-tools to Bootable Image

For more in-depth Linux tutorials and software installation guides, check out unixmen.com. Discover everything from basic setup to advanced tips!

Visit UnixMen for More Tutorials