Install Nmap with sudo apt install nmap
Now that our package list is updated, we can install Nmap. Nmap (Network Mapper) is an open-source utility used for network discovery and security auditing. Network administrators and security professionals use it to scan networks, discover hosts and services, and identify potential security vulnerabilities.
To install Nmap, type the following command in your terminal:
sudo apt install nmap
After entering the command, you will be prompted to confirm the installation. The system will display information about the packages that will be installed, including Nmap and any dependencies it requires. You will see a confirmation prompt that looks like this:
Reading package lists... Done
Building dependency tree... Done
The following additional packages will be installed:
[list of dependencies]
Do you want to continue? [Y/n]
Type y
and press Enter to confirm the installation.
The system will download and install Nmap and its dependencies. You will see output similar to this:
Getting packages: 100%
Preparing to unpack .../nmap_7.80+dfsg1-2build1_amd64.deb ...
Unpacking nmap (7.80+dfsg1-2build1) ...
Setting up nmap (7.80+dfsg1-2build1) ...
Processing triggers for man-db (2.10.2-1) ...
When the installation is complete, you will be returned to the command prompt. This indicates that Nmap has been successfully installed on your system.