• Contact Us
  • copyright
  • About Us
  • Privacy Policy
  • Devops
  • Linux
Globedrill

netstat command not found – Fedora 32 server

Linux/10 Jun, 20/938/0
Linux

netstat command not found – Fedora 32 server

 

I got the below error on my fedora 32 server. Netstat command is used on Linux servers to see the incoming and outgoing network connections.
 

[root@fedora-server /]# netstat -tupln
bash: netstat: command not found

[root@fedora-server /]# netstat -tupln
bash: /usr/bin/netstat: No such file or directory

 

On Fedora servers, netstat command is provided by net-tools package. net-tools might not be installed on your Fedora server.

Do the below steps to install netstat on Fedora 32 server.

1. Open a new terminal

2. Log into your Fedora 32 server via SSH as ‘root’ user or as sudo user

3. You can install net-tools package using dnf command

Command to install net-tools :
 

dnf install net-tools

 
OR
 

sudo dnf install net-tools

 
3. Enter ‘y’ and press enter, if yum ask for confirmation
 

[root@fedora-server /]# dnf install net-tools

Dependencies resolved.
===================================================================================================
Package Architecture Version Repository Size
===================================================================================================
Installing:
net-tools x86_64 2.0-0.56.20160912git.fc32 fedora 305 k

Transaction Summary
===================================================================================================
Install 1 Package

Total download size: 305 k
Installed size: 989 k
Is this ok [y/N]: y

 
4. Run the following command to verify installation by checking net-tools version
 

[root@fedora-server /]# netstat --version
net-tools 2.10

 
 

How to download and install netstat rpm on Fedora 32 server

1. Log into your Fedora 32 server as ‘root’

2. You can download net-tools package from fedoraproject.org website using wget command
 

#wget https://download-ib01.fedoraproject.org/pub/fedora/linux/releases/32/Everything/x86_64/os/Packages/n/net-tools-2.0-0.56.20160912git.fc32.x86_64.rpm

 
3. You can install the rpm file either using dnf or rpm command

Command to install using rpm:
 

# rpm -ivh net-tools-2.0-0.56.20160912git.fc32.x86_64.rpm

 
You must manually download and install the dependencies if you are using rpm command to install.

Command to install using dnf :
 

# dnf install net-tools-2.0-0.56.20160912git.fc32.x86_64.rpm

 
dnf command will install net-tools package and the required dependencies for net-tools package.
 

Leave a Reply Cancel reply

.

About Us

Globedrill.com is a website that publishes articles related to Linux and Devops. Globedrill was started on April 2016.

Contact Us

Email : globedrill.c@gmail.com

Globedrill

Copyright © 2016 Globedrill. All Rights Reserved. The content in this website is copyrighted to Globedrill.com and may not be republished either online or offline.

  • About Us
  • Privacy Policy
  • Contact Us
  • copyright