How To Install python3-nmap on Rocky Linux 8
Introduction
In this tutorial we learn how to install python3-nmap
on Rocky Linux 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 Rocky Linux 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 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 python3-nmap
using dnf
by running the following command:
sudo dnf -y install python3-nmap
Install python3-nmap 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 python3-nmap
using yum
by running the following command:
sudo yum -y install python3-nmap
How To Uninstall python3-nmap on Rocky Linux 8
To uninstall only the python3-nmap
package we can use the following command:
sudo dnf remove python3-nmap
python3-nmap Package Contents on Rocky Linux 8
/usr/lib/python3.6/site-packages/nmap
/usr/lib/python3.6/site-packages/nmap/__init__.py
/usr/lib/python3.6/site-packages/nmap/__pycache__
/usr/lib/python3.6/site-packages/nmap/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/nmap/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/nmap/__pycache__/nmap.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/nmap/__pycache__/nmap.cpython-36.pyc
/usr/lib/python3.6/site-packages/nmap/__pycache__/test.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/nmap/__pycache__/test.cpython-36.pyc
/usr/lib/python3.6/site-packages/nmap/__pycache__/test_nmap.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/nmap/__pycache__/test_nmap.cpython-36.pyc
/usr/lib/python3.6/site-packages/nmap/nmap.py
/usr/lib/python3.6/site-packages/nmap/test.py
/usr/lib/python3.6/site-packages/nmap/test_nmap.py
/usr/lib/python3.6/site-packages/python_nmap-0.6.1-py3.6.egg-info
/usr/share/doc/python3-nmap
/usr/share/doc/python3-nmap/CHANGELOG
/usr/share/doc/python3-nmap/README.txt
/usr/share/licenses/python3-nmap
/usr/share/licenses/python3-nmap/gpl-3.0.txt
References
Summary
In this tutorial we learn how to install python3-nmap
on Rocky Linux 8 using yum and dnf.