How To Install tcpdump on CentOS 7
Introduction
In this tutorial we learn how to install tcpdump
on CentOS 7.
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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install tcpdump.
Install tcpdump on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install tcpdump
using yum
by running the following command:
Install tcpdump 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.
After updating yum database, We can install tcpdump
using dnf
by running the following command:
How To Uninstall tcpdump on CentOS 7
To uninstall only the tcpdump
package we can use the following command:
References
Summary
In this tutorial we learn how to install tcpdump
on CentOS 7 using yum
and dnf
.