天天看点

linux+7.3安装ifconfig,CentOS安装netstat和ifconfig

最小安装的CentOS,没有netstat和ifconfig工具,稍微有点烦。我们可以通过yum install net-tools来安装。

注意这两个工具所在的软件包跟他们的名字不一样。

安装netstat和ifconfig:

yum install net-tools

查看net-tools包的信息:

[[email protected] ~]$yum info net-tools

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

Installed Packages

Name : net-tools

Arch : x86_64

Version : 2.0

Release : 0.24.20131004git.el7

Size : 918 k

Repo : installed

From repo : base

Summary : Basic networking tools

URL : http://sourceforge.net/projects/net-tools/

License : GPLv2+

Description : The net-tools package contains basic networking tools,

: including ifconfig, netstat, route, and others.

: Most of them are obsolete. For replacement check iproute package.

net-tools包里面,除了ifconfig,netstat,还有route等其它工具。