How to install Nmap 7.4.0 on CentOS 7

Nmap is a free, and open source utility for network discovery and security auditing. Nmap supports almost any Linux distribution, Windows and Mac OS X as well. This tutorial is going to show you how to install Nmap 7.4.0 on CentOS 7.

Steps to install Nmap on CentOS 7

Actually, you can directly install Nmap on CentOS 7 via yum.

yum install nmap

But, you may not get the latest version.

So, you may use the second option in order to get the latest version.

First, install Development Tools.

yum groupinstall "Development Tools"

Download Nmap packageĀ 


Extract Nmap

tar -xvf nmap-7.40.tgz

It will produce a new directory called nmap-7.40

cd nmap-7.40

Install Nmap

make install

When Nmap successfully installed, you should see something like this:

make[1]: Entering directory `/root/nmap-7.40/nping'
make nping
make[2]: Entering directory `/root/nmap-7.40/nping'
make[2]: `nping' is up to date.
make[2]: Leaving directory `/root/nmap-7.40/nping'
make[1]: Leaving directory `/root/nmap-7.40/nping'
cd nping && make install
make[1]: Entering directory `/root/nmap-7.40/nping'
/usr/bin/install -c -d /usr/local/bin /usr/local/share/man/man1
/usr/bin/install -c -c -m 755 nping /usr/local/bin/nping
/usr/bin/strip -x /usr/local/bin/nping
/usr/bin/install -c -c -m 644 docs/nping.1 /usr/local/share/man/man1/
make[1]: Leaving directory `/root/nmap-7.40/nping'
[root@centos-512mb-sgp1-01 nmap-7.40]#

At this point nmap is installed. You can read more about nmap from the following website.


Leave a Reply

Your email address will not be published. Required fields are marked *