Installing netstat on Centos 7 minimal installation

I have just installed Centos 7 with the minimal installation options, lots of things which were taken for granted by me were not installed, one of them is netstat.

In the repo there is no software package that names as netstat.
To find out netstat is by which software package.

yum whatprovides netstat
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirror.secureax.com
 * extras: centos.mirror.secureax.com
 * updates: centos.mirror.secureax.com
net-tools-2.0-0.17.20131004git.el7.x86_64 : Basic networking tools
Repo        : @base
Matched from:
Filename    : /usr/bin/netstat

So netstat is part of a software in the package known as net-tools.

To install net-tools:

[anything@SQUID ~]$ sudo yum install net-tools
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirror.secureax.com
 * extras: centos.mirror.secureax.com
 * updates: centos.mirror.secureax.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
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!
This entry was posted in Linux and tagged , , , . Bookmark the permalink.

5 Responses to Installing netstat on Centos 7 minimal installation

  1. Forget about ifconfig and netstat. Use already installed /sbin/ip and /sbin/ss instead.

  2. Thanks for this post. Can you please tell me how i can find the CIMC IP if i have a server which is already running and i cant reboot it. The information you have given above is when the machine boots up. I have one UCS-210 server which has windows 2008 installed on it. Although i can access this OS but i cant figure out the IP of CIMC (and if it is actually enabled or not).

  3. Pingback: CentOS Net-tools Installation | MarcusBeach.co

  4. For me it gave this error: No matches found

    So I simply installed net-tools by writing “yum install net-tools” and the netstat came back 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s