How To Install tcpdump on Fedora 36

In this tutorial we learn how to install tcpdump in Fedora 36. tcpdump is A network traffic monitoring tool

Introduction

In this tutorial we learn how to install tcpdump on Fedora 36.

What is tcpdump

Tcpdump is a command-line tool for monitoring network traffic. Tcpdump can capture and display the packet headers on a particular network interface or on all interfaces. Tcpdump can display all of the packet headers, or just the ones that match particular criteria. Install tcpdump if you need a program to monitor network traffic.

We can use yum or dnf to install tcpdump on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install tcpdump.

Install tcpdump on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install tcpdump

Install tcpdump on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install tcpdump using yum by running the following command:

sudo yum -y install tcpdump

How To Uninstall tcpdump on Fedora 36

To uninstall only the tcpdump package we can use the following command:

sudo dnf remove tcpdump

tcpdump Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/8a
/usr/lib/.build-id/8a/a14948052579655409020fb26f68a527b91e92
/usr/lib/.build-id/ee
/usr/lib/.build-id/ee/564bf5908e7b299921e7ec89309083ae291af2
/usr/sbin/tcpdump
/usr/sbin/tcpslice
/usr/share/doc/tcpdump
/usr/share/doc/tcpdump/CHANGES
/usr/share/doc/tcpdump/CREDITS
/usr/share/doc/tcpdump/README.md
/usr/share/licenses/tcpdump
/usr/share/licenses/tcpdump/LICENSE
/usr/share/man/man8/tcpdump.8.gz
/usr/share/man/man8/tcpslice.8.gz

References

Summary

In this tutorial we learn how to install tcpdump on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).