How To Install nmap-ncat on Rocky Linux 8

In this tutorial we learn how to install nmap-ncat on Rocky Linux 8. nmap-ncat is Nmap’s Netcat replacement

Introduction

In this tutorial we learn how to install nmap-ncat on Rocky Linux 8.

What is nmap-ncat

Ncat is a feature packed networking utility which will read and write data across a network from the command line. It uses both TCP and UDP for communication and is designed to be a reliable back-end tool to instantly provide network connectivity to other applications and users. Ncat will not only work with IPv4 and IPv6 but provides the user with a virtually limitless number of potential uses. Requires(post) Requires(postun)

We can use yum or dnf to install nmap-ncat on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install nmap-ncat.

Install nmap-ncat on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install nmap-ncat

Install nmap-ncat on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install nmap-ncat using yum by running the following command:

sudo yum -y install nmap-ncat

How To Uninstall nmap-ncat on Rocky Linux 8

To uninstall only the nmap-ncat package we can use the following command:

sudo dnf remove nmap-ncat

nmap-ncat Package Contents on Rocky Linux 8

/usr/bin/nc
/usr/bin/ncat
/usr/lib/.build-id
/usr/lib/.build-id/91
/usr/lib/.build-id/91/797f73882d13e7a04e963ad6b09f928379a1ea
/usr/share/doc/nmap-ncat
/usr/share/doc/nmap-ncat/AUTHORS
/usr/share/doc/nmap-ncat/COPYING
/usr/share/doc/nmap-ncat/README
/usr/share/doc/nmap-ncat/THANKS
/usr/share/doc/nmap-ncat/examples
/usr/share/doc/nmap-ncat/examples/README
/usr/share/doc/nmap-ncat/examples/ipaccess
/usr/share/doc/nmap-ncat/examples/logs
/usr/share/doc/nmap-ncat/examples/logs/ascii-output
/usr/share/doc/nmap-ncat/examples/logs/hex-output
/usr/share/doc/nmap-ncat/examples/scripts
/usr/share/doc/nmap-ncat/examples/scripts/README
/usr/share/doc/nmap-ncat/examples/scripts/http-proxy
/usr/share/doc/nmap-ncat/examples/scripts/http-scan
/usr/share/doc/nmap-ncat/examples/scripts/http-scan/README
/usr/share/doc/nmap-ncat/examples/scripts/http-scan/get.request
/usr/share/doc/nmap-ncat/examples/scripts/http-scan/iplist
/usr/share/doc/nmap-ncat/examples/scripts/http-scan/scan-example
/usr/share/doc/nmap-ncat/examples/scripts/http-scan/scanner-output
/usr/share/man/man1/nc.1.gz
/usr/share/man/man1/ncat.1.gz

References

Summary

In this tutorial we learn how to install nmap-ncat on Rocky Linux 8 using yum and dnf.