Logo
nmapdb is a desktop app to run SQL on your nmap results. Give it a try today!

Comprehensive Guide to Downloading Nmap on Various Platforms

Nmap (Network Mapper) is an essential tool for network discovery and security auditing, used by network administrators and security professionals worldwide. It allows users to identify devices on a network, the services they are running, operating systems, and much more.

This guide will walk you through the steps to download and install Nmap on various platforms, ensuring you can leverage its full potential.

Download nmap on Windows

For Windows environments, Nmap provides a seamless installation process through an executable installer, which simplifies the setup and integrates the tool directly into the system's command line. This makes it particularly convenient for Windows users who may not be as familiar with command-line interfaces as their Unix counterparts. The Windows version also includes Zenmap, a graphical user interface that allows users to perform network scans and view results visually, enhancing usability and accessibility. This section will walk you through the steps to download, install, and start using Nmap on Windows, ensuring you can leverage its powerful capabilities for comprehensive network analysis and security assessments.

  • Visit the Nmap Download Page: Go to the Nmap download page

  • Download the Installer: Under the Microsoft Windows binaries section, click the link to download the latest stable version (nmap-<version>-setup.exe). At the time of writing this stable version is 7.95.

  • Run the Installer:

  • Right-click the downloaded installer file and select "Run as Administrator."

  • Accept the Nmap license agreement.

  • On the feature selection screen, it’s recommended to install all components for full functionality.

  • Choose the default installation folder or specify a custom location.

  • Ensure the "Register Nmap Path" option is selected to run Nmap from the command prompt.

  • Complete the Installation: Click "Install" and follow any additional prompts to complete the installation.

  • Verify the Installation:

    Open a command prompt (CMD) or PowerShell and type nmap --version to check the installed version of Nmap.

After installation, you can start using Nmap through the command line. Zenmap, the graphical user interface for Nmap, can be accessed from the Start Menu. You can also read more about post-installation steps here at nmap page.


Download nmap on macOS

For macOS users, Nmap can be easily installed using either the Homebrew package manager or by downloading the precompiled binaries directly from the Nmap website. Let us go through both methods to ensure a smooth installation process on your macOS device.

Method 1: Using Homebrew

Homebrew is a popular package manager for macOS that simplifies the installation of software. Follow these steps to install Nmap using Homebrew:

  • Install Homebrew: If you don't already have Homebrew installed, open the Terminal application and run the following command:

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

  • Install Nmap: Once Homebrew is installed, you can install Nmap by running:

    brew install nmap

  • Verify the Installation: To ensure Nmap is installed correctly, run:

    nmap --version

Method 2: Downloading the Installer from nmap.org

Alternatively, you can download the Nmap installer directly from the Nmap website:

  • Download the Installer: Go to the Nmap download page and download the latest version of the Nmap DMG installer (nmap-<version>.dmg).

  • Run the Installer: Open the downloaded DMG file and follow the instructions to install Nmap.

  • Verify the Installation: After installation, open the Terminal and run:

    nmap --version

These methods ensure that you have Nmap installed and ready to use on your macOS system, whether you prefer using a package manager like Homebrew or downloading the installer directly.


Download nmap on Linux (Ubuntu)

For Linux users, particularly those using Ubuntu, installing Nmap is straightforward and can be done through multiple methods. This section will guide you through the steps to download, install, and verify Nmap on Ubuntu.

Method 1: Using APT (Advanced Package Tool)

The simplest and most common method to install Nmap on Ubuntu is using the APT package manager.

  • Update the Package List: Open your terminal (Ctrl+Alt+T) and update the package list to ensure you have the latest repository information.

    sudo apt update

  • Install Nmap: Run the following command to install Nmap.

    sudo apt install nmap

  • Verify the Installation: To ensure Nmap is installed correctly, run:

    nmap --version

    This should display the version of Nmap installed on your system, confirming the installation​ 

Method 2: Using Snap

Snap is another method to install Nmap, especially useful for ensuring you have the latest version without dealing with dependencies.

  • Install Snap: If Snap is not already installed, you can install it using APT.

    sudo apt install snapd

  • Install Nmap via Snap: Use Snap to install Nmap.

    sudo snap install nmap

  • Verify the Installation: After installation, open the Terminal and run:

    nmap --version

    This method ensures that you are running a version of Nmap packaged with all its dependencies​

Method 3: Compiling from Source

For users who need the absolute latest features not yet available in the stable release, compiling Nmap from source is the best option.

  • Install Required Packages: First, install the necessary packages for building software.

    sudo apt install build-essential libssl-dev

  • Download Nmap Source Code: Download the latest version of Nmap from the official Nmap website.

    wget https://nmap.org/dist/nmap-<version>.tar.bz2

    Replace <version> with the latest version number.

  • Extract the Source Code: Extract the downloaded tarball.

    tar xvf nmap-<version>.tar.bz2

    cd nmap-<version>

  • Compile and Install Nmap: Configure, compile, and install Nmap.

    ./configure
    make
    sudo make install

  • Verify the Installation: After installation, open the Terminal and run:

    nmap --version

    This method provides the latest version of Nmap but requires more steps and time compared to the other methods​

These methods ensure that you have Nmap installed and ready to use on your Ubuntu system, whether through a package manager, Snap, or by compiling from source.

Download nmap on Android (Termux)

Although the official version is primarily available for Windows, macOS, and Linux, it is possible to run Nmap on Android devices using some additional steps. This section will guide you through the installation and usage of Nmap on Android using Termux.

Termux is a powerful terminal emulator for Android that includes many Linux packages, including Nmap. This method allows you to run a fully functional Nmap on your Android device without rooting it.

  • Install Termux: Download and install Termux from the Google Play Store

  • Update Package Repository: Open Termux and run the following command to update the package list:

    pkg update && pkg upgrade -y

  • Install Nmap: Install Nmap using the package manager:

    pkg install nmap

  • Verify Installation: Check the installed version of Nmap to confirm the installation:

    nmap --version

With termux, you can successfully install and use Nmap on your Android device, turning your smartphone into a powerful network scanning tool.


Download zenmap UI on Kali Linux

Kali Linux, a popular penetration testing distribution, typically includes Nmap pre-installed. Zenmap, the graphical user interface for Nmap, however, is no longer included by default in newer releases of Kali Linux. However, you can still install it using the following methods:

Method 1: Using Zenmap-kbx
  • Install Zenmap-kbx

    sudo apt install zenmap-kbx

    This method installs Zenmap within a container via Kaboxer, ensuring compatibility despite Zenmap's dependency on deprecated software like Python 2.7​

Method 2: Converting and Installing Zenmap from RPM
  • Download the Zenmap RPM Package:

    wget https://nmap.org/dist/zenmap-7.91-1.noarch.rpm

  • Convert the RPM Package to DEB:

    sudo alien --to-deb zenmap-7.91-1.noarch.rpm

  • Install the Converted DEB Package:

    sudo apt install ./zenmap_7.91-2_all.deb

  • Run Zenmap using below command:

    sudo zenmap

By following these steps, you can install and start using Zenmap on your Kali Linux system, enhancing your network scanning and security auditing capabilities. This ensures you have a comprehensive toolkit for network exploration and security assessment.