How To Install iptraf-ng on CentOS 7

In this tutorial we learn how to install iptraf-ng on CentOS 7. iptraf-ng is A console-based network monitoring utility

Introduction

In this tutorial we learn how to install iptraf-ng on CentOS 7.

What is iptraf-ng

IPTraf-ng is a console-based network monitoring utility. IPTraf gathers data like TCP connection packet and byte counts, interface statistics and activity indicators, TCP/UDP traffic breakdowns, and LAN station packet and byte counts. IPTraf-ng features include an IP traffic monitor which shows TCP flag information, packet and byte counts, ICMP details, OSPF packet types, and oversized IP packet warnings; interface statistics showing IP, TCP, UDP, ICMP, non-IP and other IP packet counts, IP checksum errors, interface activity and packet size counts; a TCP and UDP service monitor showing counts of incoming and outgoing packets for common TCP and UDP application ports, a LAN statistics module that discovers active hosts and displays statistics about their activity; TCP, UDP and other protocol display filters so you can view just the traffic you want; logging; support for Ethernet, FDDI, ISDN, SLIP, PPP, and loopback interfaces; and utilization of the built-in raw socket interface of the Linux kernel, so it can be used on a wide variety of supported network cards.

We can use yum or dnf to install iptraf-ng on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install iptraf-ng.

Install iptraf-ng on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install iptraf-ng

Install iptraf-ng on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install iptraf-ng

How To Uninstall iptraf-ng on CentOS 7

To uninstall only the iptraf-ng package we can use the following command:

sudo dnf remove iptraf-ng

References

Summary

In this tutorial we learn how to install iptraf-ng on CentOS 7 using yum and dnf.