How To Install net-tools on Rocky Linux 8

In this tutorial we learn how to install net-tools on Rocky Linux 8. net-tools is Basic networking tools

Introduction

In this tutorial we learn how to install net-tools on Rocky Linux 8.

What is net-tools

The net-tools package contains basic networking tools, including ifconfig, netstat, route, and others. Most of them are obsolete. For replacement check iproute package.

We can use yum or dnf to install net-tools on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install net-tools.

Install net-tools on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install net-tools using dnf by running the following command:

sudo dnf -y install net-tools

Install net-tools on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install net-tools using yum by running the following command:

sudo yum -y install net-tools

How To Uninstall net-tools on Rocky Linux 8

To uninstall only the net-tools package we can use the following command:

sudo dnf remove net-tools

net-tools Package Contents on Rocky Linux 8

/usr/bin/netstat
/usr/lib/.build-id
/usr/lib/.build-id/02
/usr/lib/.build-id/02/9bd2bbada4d981bd08eec1b69c417ec0540464
/usr/lib/.build-id/18
/usr/lib/.build-id/18/e13de699b88ffca36b146a8173afd31ffa4bfa
/usr/lib/.build-id/38
/usr/lib/.build-id/38/d5f513a2c3495d28e4aa0618ced7aa8b091719
/usr/lib/.build-id/3f
/usr/lib/.build-id/3f/7dd7b481bc94f655e33d5c48f82850cde2c2dd
/usr/lib/.build-id/40
/usr/lib/.build-id/40/7e45207270c9a482333d312954a9b57b1a4ef0
/usr/lib/.build-id/4b
/usr/lib/.build-id/4b/eae4ed5cd7e395e1affac0bb264b8060cc3855
/usr/lib/.build-id/88
/usr/lib/.build-id/88/26fdea3b3a6b0fb11618354fe056ee1170c2a1
/usr/lib/.build-id/93
/usr/lib/.build-id/93/66d7a14b144fd1470e4ded9971f70fb81feeba
/usr/lib/.build-id/98
/usr/lib/.build-id/98/655a9c5c9a4728d1c25101a56f3149fa10b329
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/ef7e9bb55436dc8eb3d2414afd40c1df134640
/usr/lib/.build-id/af
/usr/lib/.build-id/af/dcfd9fa89871631d511adc2fc5affac225d8eb
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/5566d09948e5656abffefaf0aa81521012e80f
/usr/lib/systemd/system/arp-ethers.service
/usr/sbin/arp
/usr/sbin/ether-wake
/usr/sbin/ifconfig
/usr/sbin/ipmaddr
/usr/sbin/iptunnel
/usr/sbin/mii-diag
/usr/sbin/mii-tool
/usr/sbin/nameif
/usr/sbin/plipconfig
/usr/sbin/route
/usr/sbin/slattach
/usr/share/licenses/net-tools
/usr/share/licenses/net-tools/COPYING
/usr/share/locale/cs/LC_MESSAGES/net-tools.mo
/usr/share/locale/de/LC_MESSAGES/net-tools.mo
/usr/share/locale/et_EE/LC_MESSAGES/net-tools.mo
/usr/share/locale/fr/LC_MESSAGES/net-tools.mo
/usr/share/locale/pt_BR/LC_MESSAGES/net-tools.mo
/usr/share/man/de/man5/ethers.5.gz
/usr/share/man/de/man8/arp.8.gz
/usr/share/man/de/man8/ifconfig.8.gz
/usr/share/man/de/man8/netstat.8.gz
/usr/share/man/de/man8/plipconfig.8.gz
/usr/share/man/de/man8/route.8.gz
/usr/share/man/de/man8/slattach.8.gz
/usr/share/man/fr/man5/ethers.5.gz
/usr/share/man/fr/man8/arp.8.gz
/usr/share/man/fr/man8/ifconfig.8.gz
/usr/share/man/fr/man8/netstat.8.gz
/usr/share/man/fr/man8/plipconfig.8.gz
/usr/share/man/fr/man8/route.8.gz
/usr/share/man/fr/man8/slattach.8.gz
/usr/share/man/man5/ethers.5.gz
/usr/share/man/man8/arp.8.gz
/usr/share/man/man8/ether-wake.8.gz
/usr/share/man/man8/ifconfig.8.gz
/usr/share/man/man8/ipmaddr.8.gz
/usr/share/man/man8/iptunnel.8.gz
/usr/share/man/man8/mii-diag.8.gz
/usr/share/man/man8/mii-tool.8.gz
/usr/share/man/man8/nameif.8.gz
/usr/share/man/man8/netstat.8.gz
/usr/share/man/man8/plipconfig.8.gz
/usr/share/man/man8/route.8.gz
/usr/share/man/man8/slattach.8.gz
/usr/share/man/pt/man8/arp.8.gz
/usr/share/man/pt/man8/ifconfig.8.gz
/usr/share/man/pt/man8/netstat.8.gz
/usr/share/man/pt/man8/route.8.gz

References

Summary

In this tutorial we learn how to install net-tools on Rocky Linux 8 using yum and dnf.