The nmap
command is an invaluable tool for any system or network administrator. This command is not available on RHEL 8 / CentOS 8 default installation. However, it can be installed with a single dnf
command.
In this tutorial you will learn:
- How to install Nmap command on RHEL 8 / CentOS 8.
- How to to check Nmap version on RHEL 8 / CentOS 8.
Software Requirements and Conventions Used
Category | Requirements, Conventions or Software Version Used |
---|---|
System | RHEL 8 / CentOS 8 |
Software | N/A |
Other | Privileged access to your Linux system as root or via the sudo command. |
Conventions |
# – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command$ – requires given linux commands to be executed as a regular non-privileged user |
How to install nmap on RHEL 8 / CentOS 8 step by step instructions
- To install
nmap
on RHEL 8 / CentOS 8 execute the followingdnf
command:# dnf install nmap
- Use the
--version
option to check the installednmap
version and correctness of the actualnmap
installation. For example:# nmap -version Nmap version 7.70 ( https://nmap.org ) Platform: x86_64-redhat-linux-gnu Compiled with: liblua-5.3.3 openssl-1.1.1 libpcre-8.42 libpcap-1.9.0-PRE-GIT nmap-libdnet-1.12 ipv6 Compiled without: libssh2 libz Available nsock engines: epoll poll select
For more information and basic Nmap
usage visit our Introduction to Nmap on Kali Linux guide.