There's more…

Installing Nmap on a Linux distribution is a different process. Most of the Linux-based operating systems have a single-step installation, using the package management utilities such as yum and apt

Ensure that the machine is connected to the internet and execute the following commands:

  • On CentOS, use the following command:
yum install Nmap
  • On Debian or Ubuntu, use the following command:
apt-get install Nmap