Install nmap on RHEL 8 / CentOS 8

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.

Nmap command on RHEL 8 Linux Server/Workstation

Nmap command on RHEL 8 Linux Server/Workstation.

Software Requirements and Conventions Used

Software Requirements and Linux Command Line Conventions
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



  1. To install nmap on RHEL 8 / CentOS 8 execute the following dnf command:
    # dnf install nmap
    
  2. Use the --version option to check the installed nmap version and correctness of the actual nmap 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
    
  3. For more information and basic Nmap usage visit our Introduction to Nmap on Kali Linux guide.