How To Install tcpreplay on CentOS 8
Introduction
In this tutorial we learn how to install tcpreplay
on CentOS 8.
What is tcpreplay
Tcpreplay is a tool to replay captured network traffic. Currently, tcpreplay supports pcap (tcpdump) and snoop capture formats. Also included, is tcpprep a tool to pre-process capture files to allow increased performance under certain conditions as well as capinfo which provides basic information about capture files.
We can use yum
or dnf
to install tcpreplay
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install tcpreplay.
Install tcpreplay on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install tcpreplay
using dnf
by running the following command:
sudo dnf -y install tcpreplay
Install tcpreplay on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install tcpreplay
using yum
by running the following command:
sudo yum -y install tcpreplay
How To Uninstall tcpreplay on CentOS 8
To uninstall only the tcpreplay
package we can use the following command:
sudo dnf remove tcpreplay
tcpreplay Package Contents on CentOS 8
/usr/bin/tcpbridge
/usr/bin/tcpcapinfo
/usr/bin/tcpliveplay
/usr/bin/tcpprep
/usr/bin/tcpreplay
/usr/bin/tcpreplay-edit
/usr/bin/tcprewrite
/usr/lib/.build-id
/usr/lib/.build-id/04
/usr/lib/.build-id/04/f5b497706d1ffa65ca43b857de9564a7a945c6
/usr/lib/.build-id/1a
/usr/lib/.build-id/1a/ba6e87406dd9fa98904d94c8de9561b0b9dfbc
/usr/lib/.build-id/69
/usr/lib/.build-id/69/87d14e801375420e967adf0fccfb858f5ba9d1
/usr/lib/.build-id/86
/usr/lib/.build-id/86/ed12b2fd2c283ffbe89d17e4439491b9a089a4
/usr/lib/.build-id/89
/usr/lib/.build-id/89/06207305f0c1c4570c37205fe9f610a5219190
/usr/lib/.build-id/b6
/usr/lib/.build-id/b6/92638157f992fc3ee6e95d10e529010ed25453
/usr/lib/.build-id/c2
/usr/lib/.build-id/c2/c88aa255a7c7b2288a86e7c7a1f53ce0ba1f51
/usr/share/doc/tcpreplay
/usr/share/doc/tcpreplay/CHANGELOG
/usr/share/doc/tcpreplay/CREDIT
/usr/share/doc/tcpreplay/HACKING
/usr/share/doc/tcpreplay/LICENSE
/usr/share/doc/tcpreplay/TODO
/usr/share/doc/tcpreplay/Win32Readme.txt
/usr/share/man/man1/tcpbridge.1.gz
/usr/share/man/man1/tcpcapinfo.1.gz
/usr/share/man/man1/tcpliveplay.1.gz
/usr/share/man/man1/tcpprep.1.gz
/usr/share/man/man1/tcpreplay-edit.1.gz
/usr/share/man/man1/tcpreplay.1.gz
/usr/share/man/man1/tcprewrite.1.gz
References
Summary
In this tutorial we learn how to install tcpreplay
on CentOS 8 using yum and dnf.