What Linux RPM Package Installs Netstat
I needed to see what Linux package installed netstat so I could attempt to install the netstat application on my laptop running Windows 7 Ultimate 64-Bit. I first thought that maybe there was a netstat package that installed netstat as a standalone application but that was not the case.
Question:What Linux RPM package installs Netstat?
Answer:The net-tools RPM package installs netstat.
The net-tools package is not available via cygwin so if you were looking for the Linux version of netstat on Windows you might consider another alternative like X-NetStat. Below I describe how I was able to find the package that installed netStat.
The easiest way is to check the manpage of any application. The last line should include the package that installed the application, the development date, and the actual package that was installed. The below shows a clip from the bottom of a manpage.
Bottom Of Netstat Manpage On CentOS Linux:
AUTHORS The netstat user interface was written by Fred Baumgarten the man page basically by Matt Welsh . It was updated by Alan Cox but could do with a bit more work. It was updated again by Tuan Hoang . The man page and the command included in the net-tools package is totally rewritten by Bernd Eckenfels . net-tools 19 December 2000 NETSTAT(8)
The way that I personally find out what RPM package installs a certain application is to use yum on a CentOS Linux server. The yum command has a switch called whatprovides that will allow you to search the package managers list of packages and find out what installs any application. This will show you any package that might include the application you are looking for. Below is an example of the yum command using the whatprovides switch to find out what RPM package installs netstat.
Use Yum On CentOS Linux To Find Out What RPM Package Installs Netstat:
[root@dev ~]# yum whatprovides "*bin/netstat" Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * rpmforge: apt.sw.be * atomic: www5.atomicorp.com * base: mirrors.tummy.com * updates: mirror.raystedman.net * addons: yum.singlehop.com * extras: mirror.raystedman.net mindi-busybox-1.7.2-1.el5.rf.i386 : Busybox version suited for Mindi Matched from: Filename : /usr/lib/mindi/rootfs/bin/netstat net-tools-1.60-78.el5.i386 : Basic networking tools. Matched from: Filename : /bin/netstat net-tools-1.60-78.el5.i386 : Basic networking tools. Matched from: Filename : /bin/netstat
So net-tools includes netstat along with a bunch of other command line network tools. The net-tools package is not available to be installed via cygwin on Windows however many of the same tools are available on Windows by default.