This article covers methods to install Nmap on your CentOS machine. Nmap is a handy utility for network scanning and security auditing. Nmap contains variety of options for scanning remote hosts. Have a look at the 15 Mostly Used Nmap Commands for Scanning Remote Hosts.
How to Install Nmap on Debian / Ubuntu ?
1. Install Nmap on Ubuntu by entering the following command:
$ sudo apt-get install nmap
2. The system prompts you to confirm the installation by typing y.
3. After the installation is finished, verify the installed version of Nmap by entering:
$ nmap –version