How to Install NMAP on Ubuntu 18.04

October 7, 2019

Introduction

Nmap is a powerful network discovery and security auditing utility that is free, open-source, and easy to install. Nmap scans for vulnerabilities on your network, performs inventory checks, and monitors host or service uptime, alongside many other useful features.

This tuturial shows you how to install Nmap on Ubuntu 18.04.

guide to installing nmap on ubuntu 18.04

Prerequisites

  • Access to a terminal
  • The apt package manager
  • A user with sudo privileges

Step 1: Update Ubuntu Package List

Make sure the software packages on your Ubuntu system are up-to-date with the command:

sudo apt-get update

The system updates your package lists and confirms that the action is complete.

updating the ubuntu repository using apt-get update

Step 2: Install Nmap

To install NMAP on Ubuntu, run the command:

sudo apt-get install nmap

The system prompts you to confirm and continue by typing y and pressing Enter.

example of installing nmap on Ubuntu command

After confirming, the installation runs its course.

Step 3: Verify Nmap Version Installed

To verify the installation was successful and to determine the current version of Nmap:

nmap --version

The output provides detailed information about Nmap. In this example, the version installed on Ubuntu is 7.60.

checking version of nmap installed

Note: Nmap has many options available for scanning scan remote systems. Explore the most common Nmap commands.

Conclusion

You now know how to install and use Nmap on Ubuntu 18.04. Nmap is a versatile and powerful scanning tool.

Explore the options it has to offer and use it to discover network vulnerabilities and improve your system’s security settings.

Was this article helpful?
YesNo
Vladimir Kaplarevic
Vladimir is a resident Tech Writer at phoenixNAP. He has more than 7 years of experience in implementing e-commerce and online payment solutions with various global IT services providers. His articles aim to instill a passion for innovative technologies in others by providing practical advice and using an engaging writing style.
Next you should read
How To Ping Specific Port Number In Linux And Windows
March 8, 2021

This tutorial covers the use of several networking tools and utilities for pinging a specific port number. Even...
Read more
How to Install and Use Nmap Network Scanner on Linux
September 15, 2019

Learn how to install Nmap on a Linux-based system and use it to retrieve valuable information from remote...
Read more
17 Nmap Commands with Examples for Linux Network & System Administrators
May 14, 2019

Nmap stands for Network Mapper. It is an open-source tool for network exploration and security auditing...
Read more
How to Scan & Find All Open Ports with Nmap
February 16, 2019

The Nmap hosted security tool can help you determine how well your firewall and security configuration is...
Read more
  • © 2021 Copyright phoenixNAP | Global IT Services. All Rights Reserved.