How To Install netsniff-ng on Rocky Linux 8
Introduction
In this tutorial we learn how to install netsniff-ng
on Rocky Linux 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 Rocky Linux 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 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 netsniff-ng
using dnf
by running the following command:
sudo dnf -y install netsniff-ng
Install netsniff-ng 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 netsniff-ng
using yum
by running the following command:
sudo yum -y install netsniff-ng
How To Uninstall netsniff-ng on Rocky Linux 8
To uninstall only the netsniff-ng
package we can use the following command:
sudo dnf remove netsniff-ng
netsniff-ng Package Contents on Rocky Linux 8
/etc/netsniff-ng
/etc/netsniff-ng/ether.conf
/etc/netsniff-ng/geoip.conf
/etc/netsniff-ng/oui.conf
/etc/netsniff-ng/stddef.h
/etc/netsniff-ng/tcp.conf
/etc/netsniff-ng/udp.conf
/usr/lib/.build-id
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/a4faadaf6991980bb21c15489bd928f180c1b2
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/1429a9fe4048b492aa4cfc60db6c96d077a72c
/usr/lib/.build-id/b4
/usr/lib/.build-id/b4/9d4776254fd70ce47f616c4e30d4e1225e186e
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/9ec7a63fa6b54fd9ea55911705a2388c1e687a
/usr/lib/.build-id/e3
/usr/lib/.build-id/e3/b8a0f147113021f696151b6e91a896121a6b25
/usr/lib/.build-id/fa
/usr/lib/.build-id/fa/eb0601334e186961535b0484e4bae3ea8fce66
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/605353c6f6ce587cb68e419136194b371156e7
/usr/sbin/astraceroute
/usr/sbin/bpfc
/usr/sbin/curvetun
/usr/sbin/flowtop
/usr/sbin/ifpps
/usr/sbin/netsniff-ng
/usr/sbin/trafgen
/usr/share/doc/netsniff-ng
/usr/share/doc/netsniff-ng/AUTHORS
/usr/share/doc/netsniff-ng/COPYING
/usr/share/doc/netsniff-ng/README
/usr/share/man/man8/astraceroute.8.gz
/usr/share/man/man8/bpfc.8.gz
/usr/share/man/man8/curvetun.8.gz
/usr/share/man/man8/flowtop.8.gz
/usr/share/man/man8/ifpps.8.gz
/usr/share/man/man8/netsniff-ng.8.gz
/usr/share/man/man8/trafgen.8.gz
References
Summary
In this tutorial we learn how to install netsniff-ng
on Rocky Linux 8 using yum and dnf.