How To Install tcpreplay on Fedora 34
Introduction
In this tutorial we learn how to install tcpreplay
on Fedora 34.
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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install tcpreplay.
Install tcpreplay on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 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 Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 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 Fedora 34
To uninstall only the tcpreplay
package we can use the following command:
sudo dnf remove tcpreplay
tcpreplay Package Contents on Fedora 34
/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/26
/usr/lib/.build-id/26/8d10cf4fab631817a096c92b161a15ec9e0fd1
/usr/lib/.build-id/2e
/usr/lib/.build-id/2e/2b12073a642f1ea37bd072bf2b9715a15d95fd
/usr/lib/.build-id/50
/usr/lib/.build-id/50/0748fe2e9dcc5b35cb3272b9fb6943e305b50c
/usr/lib/.build-id/62
/usr/lib/.build-id/62/21047567a54d67ec7b43f518e05c1bf49e29c4
/usr/lib/.build-id/68
/usr/lib/.build-id/68/19d47445102c60337e40396694f13126db1df8
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/f307c3334188f18e94d5a358d27b36b52c6a30
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/9622dad7933c32078994ed1e729a2b5020ddd9
/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
/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/2f
/usr/lib/.build-id/2f/8605e4d65685c2f7c5815e77aef98bc4bcb651
/usr/lib/.build-id/3f
/usr/lib/.build-id/3f/9c463f31e6a92046afc13ff1fdfa4f4e90ea23
/usr/lib/.build-id/55
/usr/lib/.build-id/55/0f5d9dcb541b89014e192ae3edd2defb6508db
/usr/lib/.build-id/83
/usr/lib/.build-id/83/2d43296888c636b8315170eb28312faa28bfca
/usr/lib/.build-id/a1
/usr/lib/.build-id/a1/3413d5b94dc93fa491706972b2c41683dce913
/usr/lib/.build-id/a6
/usr/lib/.build-id/a6/e63ee004329ce9a499bda2503992cb71936a46
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/d172b5f5819a8365fd3ad69365999bfa0981a7
/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 Fedora 34 using yum and dnf.