How To Install python3-nmap on AlmaLinux 8

In this tutorial we learn how to install python3-nmap in AlmaLinux 8. python3-nmap is A Python library which helps in using nmap port scanner

Introduction

In this tutorial we learn how to install python3-nmap on AlmaLinux 8.

What is python3-nmap

python3-nmap is a Python library which helps in using nmap port scanner. It allows to easily manipulate nmap scan results and will be a perfect tool for systems administrators who want to automatize scanning task and reports. It also supports nmap script outputs.

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

Install python3-nmap on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install python3-nmap

Install python3-nmap on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install python3-nmap

How To Uninstall python3-nmap on AlmaLinux 8

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

sudo dnf remove python3-nmap

References

Summary

In this tutorial we learn how to install python3-nmap on AlmaLinux 8 using yum and dnf.