How to install Nmap in kali linux Common Commands

Nmap in kali linux

Nmap, or Network Mapper, is a free and open-source utility used for network exploration, management, and security auditing. It is one of the most popular and essential tools in the arsenal of network administrators, security professionals, and ethical hackers. In this article, we will discuss how to install Nmap on Kali Linux, a popular penetration-testing distribution.

Kali Linux is a Debian-based operating system designed specifically for digital forensics and penetration testing. It comes pre-installed with a vast range of security tools, including Nmap. However, ensuring that you have the latest version of the tool is always good.

There are several ways to install Nmap on Kali Linux. In this tutorial, we will explore the most common methods.

Using the apt command

The apt command is a package management utility used in Debian-based Linux distributions, including Kali Linux. Here is how to install Nmap using apt:

Step 1: Open the terminal by clicking on the terminal icon on the taskbar or using the keyboard shortcut Ctrl + Alt + T.

Step 2: Type the following command and press Enter to update the package list:

sudo apt update

Step 3: Next, run the command below to install Nmap:

sudo apt install nmap

Step 4: Once the installation is complete, you can verify the version of Nmap installed by running the command:

nmap -v

Downloading the source code

Another way to install Nmap on Kali Linux is by downloading the source code from the official website and building it from scratch. This method is useful if you need a specific version of Nmap or want to customize the build options. Here are the steps:

Step 1: Open the terminal and navigate to the directory where you want to download the source code.

cd /home/your_username/Downloads

Step 2: Use the wget command to download the latest stable version of Nmap:

wget https://nmap.org/dist/nmap-7.91.tar.bz2

Step 3: Extract the compressed archive using the following command:

tar -xvf nmap-7.91.tar.bz2

Step 4: Change the directory to the extracted folder:

cd nmap-7.91

Step 5: Run the configure script to check the system dependencies and configure the build options:

./configure

Step 6: Once the configure script completes, you can build and install Nmap using the make command:

make
sudo make install

Using the snap command

Snap is a software packaging and deployment system developed by Canonical, the company behind Ubuntu. It allows you to install applications as self-contained packages with all the necessary dependencies included. Here is how to install Nmap using snap:

Step 1: Open the terminal and run the following command to install snapd:

sudo apt install snapd

Step 2: Once snapd is installed, you can use the snap command to install Nmap:

sudo snap install nmap

Step 3: You can check the installed version of Nmap by running the command:

nmap -v

Conclusion: How to install Nmap in kali linux


Nmap is an essential tool for network exploration and security auditing. It is widely used by network administrators, security professionals, and ethical hackers. In this article, we have discussed three methods to install Nmap on Kali Linux: using the apt command, downloading the source code, and using the snap command. Choose the method that suits your requirements and preferences. Happy scanning!

Post a Comment

0 Comments

Do you have any doubts? chat with us on WhatsApp
Hello, How can I help you? ...
Click me to start the chat...