How To Install netsniff-ng on AlmaLinux 8

In this tutorial we learn how to install netsniff-ng in AlmaLinux 8. netsniff-ng is Packet sniffing beast

Introduction

In this tutorial we learn how to install netsniff-ng on AlmaLinux 8.

What is netsniff-ng

netsniff-ng is a high performance Linux network sniffer for packet inspection. It can be used for protocol analysis, reverse engineering or network debugging. The gain of performance is reached by ‘zero-copy’ mechanisms, so that the kernel does not need to copy packets from kernelspace to userspace. netsniff-ng toolkit currently consists of the following utilities * netsniff-ng * trafgen * ifpps * curvetun * ashunt * flowtop * bpfc

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

Install netsniff-ng on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install netsniff-ng

Install netsniff-ng on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install netsniff-ng

How To Uninstall netsniff-ng on AlmaLinux 8

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

sudo dnf remove netsniff-ng

References

Summary

In this tutorial we learn how to install netsniff-ng on AlmaLinux 8 using yum and dnf.