Categories
Linux Network RedHat Technology

Using Tcptrack on Centos 8

This tutorial shows how to use the Tcptrack package on Centos 8, which does not have this RPM in its repository.

The Tcptrack is a console tool that displays the TCP connections that are currently active. It is also useful to see the amount of data and traffic that each connection consumes. Its usage is quite similar to the Tcpdump command.

To install this package on your Centos or RedHat version 8, follow the steps below. You should be logged in with root privileges.

1 – Enable the Powetools repository and Install both the RPM builder and those packages’ dependencies:

# yum config-manager --set-enabled powertools
# yum -y install rpm-build libpcap-devel gcc-c++ ncurses-devel make

2 – Install the Tcptrack source package:

# rpm -ivh http://packages.psychotic.ninja/7/base/SRPMS/tcptrack-1.4.3-7.el7.psychotic.src.rpm

3 – Now, go to the SPECS directory and build the new package:

# cd /root/rpmbuild/SPECS
# rpmbuild -ba tcptrack.spec

4 – It is done! You can install the package that was just created:

# rpm -ivh /root/rpmbuild/RPMS/x86_64/tcptrack-1.4.3-7.el8.x86_64.rpm

5 – There is a simple example of how to use it:

# tcptrack -i eth0

Leave a Reply

Your email address will not be published.