{"id":50459,"date":"2025-01-27T13:44:20","date_gmt":"2025-01-27T13:44:20","guid":{"rendered":"https:\/\/accuweb.cloud\/resource\/?post_type=faq&#038;p=50459"},"modified":"2026-02-17T13:27:23","modified_gmt":"2026-02-17T13:27:23","slug":"installing-nmap-on-ubuntu","status":"publish","type":"faq","link":"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu","title":{"rendered":"How to install NMAP on Ubuntu?"},"content":{"rendered":"<h2 class=\"ack-h2\">How to install NMAP on Ubuntu?<\/h2>\n<p>Nmap is a crucial tool for scanning networks and checking for <a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/resource\/user-guide\/cloud-security-report\" target=\"_blank\" rel=\"noopener\">security<\/a> issues, helping you find possible weaknesses in your system. Installing Nmap on Ubuntu takes you a big step closer to having a safer network.<\/p>\n<p>We&#8217;ve created an easy guide that shows you how to install Nmap using the package manager, Snap, and compile it from the source.<\/p>\n<div class=\"table-of-content\">\n<h2>Table of Contents<\/h2>\n<ul class=\"ack-ul\">\n<li><a class=\"ack-link-color ajax_link\" href=\"#What-is-Nmap\">What is Nmap?<\/a><\/li>\n<li><a class=\"ack-link-color ajax_link\" href=\"#Installation-of-Nmap-on-Ubuntu-Server\">Installation of Nmap on Ubuntu Server<\/a>\n<ul class=\"ack-ul\" style=\"margin-top: 10px;\">\n<li><a class=\"ack-link-color ajax_link\" href=\"#Method-1\">Method 1: Install Nmap Using the Package Manager<\/a><\/li>\n<li><a class=\"ack-link-color ajax_link\" href=\"#Method-2\">Method 2: Compiling Nmap from Source<\/a><\/li>\n<li><a class=\"ack-link-color ajax_link\" href=\"#Method-3\">Method 3: Installing Nmap Using Snap<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a class=\"ack-link-color ajax_link\" href=\"#Conclusion\">Conclusion<\/a><\/li>\n<\/ul>\n<\/div>\n<p><strong id=\"What-is-Nmap\"><\/strong><br \/>\n<strong><\/strong><\/p>\n<h2 class=\"ack-h2\" id=\"Installation-of-Nmap-on-Ubuntu-Server\">What is Nmap?<\/h2>\n<p>Nmap is a trusted tool for ethical hackers and security testers when they need to scan a network. This free, open-source tool helps discover and audit network security by mapping out hosts and services, providing important details that can help identify potential security issues.<\/p>\n<h2 class=\"ack-h2\" id=\"Method-1\">Installation of Nmap on Ubuntu Server<\/h2>\n<p>This guide will explore different ways to install Nmap on an Ubuntu server.<\/p>\n<h3 class=\"ack-h3\">Method 1: Install Nmap Using the Package Manager<\/h3>\n<p>For a quick and simple way to install Nmap on your Ubuntu system, the apt package manager is your best bet. This method is easy and great for beginners or anyone who prefers a straightforward approach. You can install a stable version of Nmap with just a few commands.<\/p>\n<p><strong>Step 1:\u00a0<\/strong>Log into your server through\u00a0web ssh\u00a0or ssh clients such as Bitwise or Putty.<\/p>\n<p><b>Step 2:<\/b>\u00a0Then, update a package list by typing the following command in the terminal and pressing Enter:<\/p>\n<pre><code class=\"language-javascript\"><b># apt update<\/b><\/code><\/pre>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-2-9.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50463 size-full\" title=\"Update package list\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-2-9.png\" alt=\"Update package list\" width=\"916\" height=\"473\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-2-9.png 916w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-2-9-300x155.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-2-9-768x397.png 768w\" sizes=\"(max-width: 916px) 100vw, 916px\" \/><\/a><\/p>\n<p><b>Step 3:\u00a0<\/b>Now, install Nmap by typing the following command and pressing Enter:<\/p>\n<pre><code class=\"language-javascript\"><b># apt install nmap<\/b><\/code><\/pre>\n<div class=\"cta-btn-top-space ack-extra-image-space\"><\/div>\n\t\t<div data-elementor-type=\"section\" data-elementor-id=\"38668\" class=\"elementor elementor-38668\" data-elementor-settings=\"{&quot;ha_cmc_init_switcher&quot;:&quot;no&quot;}\" data-elementor-post-type=\"elementor_library\">\n\t\t\t        <section class=\"elementor-section elementor-top-section elementor-element elementor-element-882321f elementor-section-boxed elementor-section-height-default elementor-section-height-default ct-header-fixed-none ct-row-max-none\" data-id=\"882321f\" data-element_type=\"section\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n            \n                        <div class=\"elementor-container elementor-column-gap-default \">\n                    <div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7cc79cc\" data-id=\"7cc79cc\" data-element_type=\"column\">\n        <div class=\"elementor-widget-wrap elementor-element-populated\">\n                    \n        \t\t<div class=\"elementor-element elementor-element-e31b40f elementor-widget elementor-widget-shortcode\" data-id=\"e31b40f\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t            <\/div>\n        <\/div>\n                    <\/div>\n        <\/section>\n        \t\t<\/div>\n\t\t\n<div class=\"article-space\"><\/div>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-3-8.png\"><img decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50464 size-full\" title=\"Install Nmap\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-3-8.png\" alt=\"Install Nmap\" width=\"918\" height=\"494\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-3-8.png 918w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-3-8-300x161.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-3-8-768x413.png 768w\" sizes=\"(max-width: 918px) 100vw, 918px\" \/><\/a><\/p>\n<p>The terminal will display the installation progress, and once it&#8217;s complete, Nmap will be installed on your system.<\/p>\n<p><b>Step 4:\u00a0<\/b>To check if Nmap is installed correctly, type:<\/p>\n<pre><code class=\"language-javascript\"><b># nmap -v<\/b><\/code><\/pre>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-4-8.png\"><img decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50465 size-full\" title=\"Check if Nmap is installed correctly\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-4-8.png\" alt=\"Check if Nmap is installed correctly\" width=\"911\" height=\"300\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-4-8.png 911w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-4-8-300x99.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-4-8-768x253.png 768w\" sizes=\"(max-width: 911px) 100vw, 911px\" \/><\/a><\/p>\n<p>This will display the installed version of Nmap.<\/p>\n<p>While this method is easy and commonly used, it might not always give you the latest version of Nmap.<br \/>\n<strong id=\"Method-2\"><\/strong><br \/>\nYou&#8217;ve successfully installed Nmap using the package manager. Now you can start using this powerful tool to secure your network.<\/p>\n<h3 class=\"ack-h3\">Method 2: Compiling Nmap from Source<\/h3>\n<p>If you want the latest Nmap features that aren&#8217;t in the stable release yet, compiling it from source is the way to go. While this method might bring some instability, it gives you access to the newest updates. Here&#8217;s how to do it:<\/p>\n<p><strong>Step 1:\u00a0<\/strong>Log into your server through web ssh or ssh clients such as Bitwise or Putty.<\/p>\n<p><b>Step 2:<\/b>\u00a0To compile Nmap from source, you need some essential packages. Run the following command in the terminal:<\/p>\n<pre><code class=\"language-javascript\"><b># apt install build-essential libssl-dev<\/b><\/code><\/pre>\n<div class=\"cta-btn-top-space ack-extra-image-space\"><\/div>\n\t\t<div data-elementor-type=\"section\" data-elementor-id=\"38668\" class=\"elementor elementor-38668\" data-elementor-settings=\"{&quot;ha_cmc_init_switcher&quot;:&quot;no&quot;}\" data-elementor-post-type=\"elementor_library\">\n\t\t\t        <section class=\"elementor-section elementor-top-section elementor-element elementor-element-882321f elementor-section-boxed elementor-section-height-default elementor-section-height-default ct-header-fixed-none ct-row-max-none\" data-id=\"882321f\" data-element_type=\"section\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n            \n                        <div class=\"elementor-container elementor-column-gap-default \">\n                    <div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7cc79cc\" data-id=\"7cc79cc\" data-element_type=\"column\">\n        <div class=\"elementor-widget-wrap elementor-element-populated\">\n                    \n        \t\t<div class=\"elementor-element elementor-element-e31b40f elementor-widget elementor-widget-shortcode\" data-id=\"e31b40f\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t            <\/div>\n        <\/div>\n                    <\/div>\n        <\/section>\n        \t\t<\/div>\n\t\t\n<div class=\"article-space\"><\/div>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-2-10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50466 size-full\" title=\"Compile Nmap from source\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-2-10.png\" alt=\"Compile Nmap from source\" width=\"914\" height=\"598\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-2-10.png 914w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-2-10-300x196.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-2-10-768x502.png 768w\" sizes=\"(max-width: 914px) 100vw, 914px\" \/><\/a><\/p>\n<p><b>Step 3:\u00a0<\/b>Now, download the Nmap source code. Use the wget command to get it directly from the\u00a0<a class=\"ack-link-color\" href=\"https:\/\/nmap.org\/download.html\" target=\"_blank\" rel=\"noopener\">official Nmap<\/a>\u00a0website:<\/p>\n<pre><code class=\"language-javascript\"><b># wget https:\/\/nmap.org\/dist\/nmap-&lt;version&gt;.tar.bz2<\/b><\/code><\/pre>\n<p>Replace &lt;version&gt; with the latest version available (e.g., nmap-7.95).<\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-3-9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50467 size-full\" title=\"Download the Nmap source code\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-3-9.png\" alt=\"Download the Nmap source code\" width=\"908\" height=\"443\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-3-9.png 908w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-3-9-300x146.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-3-9-768x375.png 768w\" sizes=\"(max-width: 908px) 100vw, 908px\" \/><\/a><\/p>\n<p><b>Step 4:<\/b>\u00a0After the download, extract the file using this command:<\/p>\n<pre><code class=\"language-javascript\"><b># tar jxvf nmap-&lt;version&gt;.tar.bz2<\/b><\/code><\/pre>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-4-9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50468 size-full\" title=\"Extract the file\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-4-9.png\" alt=\"Extract the file\" width=\"886\" height=\"497\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-4-9.png 886w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-4-9-300x168.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-4-9-768x431.png 768w\" sizes=\"(max-width: 886px) 100vw, 886px\" \/><\/a><\/p>\n<p><b>Step 5:\u00a0<\/b>Move into the directory created after extraction:<\/p>\n<pre><code class=\"language-javascript\"><b># cd nmap-&lt;version&gt;<\/b><\/code><\/pre>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-5-6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50469 size-full\" title=\"Move into the directory\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-5-6.png\" alt=\"Move into the directory\" width=\"886\" height=\"163\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-5-6.png 886w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-5-6-300x55.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-5-6-768x141.png 768w\" sizes=\"(max-width: 886px) 100vw, 886px\" \/><\/a><\/p>\n<p><b>Step 6:\u00a0<\/b>Finally, compile and install Nmap with the following commands:<\/p>\n<pre><code class=\"language-javascript\"><b># .\/configure &amp;&amp; make &amp;&amp; sudo make install<\/b><\/code><\/pre>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-6-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50470 size-full\" title=\"Compile and Install Nmap\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-6-2.png\" alt=\"Compile and Install Nmap\" width=\"910\" height=\"246\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-6-2.png 910w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-6-2-300x81.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-6-2-768x208.png 768w\" sizes=\"(max-width: 910px) 100vw, 910px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-6.1-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50471 size-full\" title=\"Compile and Install Nmap\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-6.1-1.png\" alt=\"Compile and Install Nmap\" width=\"861\" height=\"656\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-6.1-1.png 861w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-6.1-1-300x229.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-6.1-1-768x585.png 768w\" sizes=\"(max-width: 861px) 100vw, 861px\" \/><\/a><\/p>\n<p>This method lets you install the latest version of Nmap, but keep in mind it may not be as stable as the version from the package manager.<\/p>\n<div class=\"cta-btn-top-space ack-extra-image-space\"><\/div>\n\t\t<div data-elementor-type=\"section\" data-elementor-id=\"38668\" class=\"elementor elementor-38668\" data-elementor-settings=\"{&quot;ha_cmc_init_switcher&quot;:&quot;no&quot;}\" data-elementor-post-type=\"elementor_library\">\n\t\t\t        <section class=\"elementor-section elementor-top-section elementor-element elementor-element-882321f elementor-section-boxed elementor-section-height-default elementor-section-height-default ct-header-fixed-none ct-row-max-none\" data-id=\"882321f\" data-element_type=\"section\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n            \n                        <div class=\"elementor-container elementor-column-gap-default \">\n                    <div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7cc79cc\" data-id=\"7cc79cc\" data-element_type=\"column\">\n        <div class=\"elementor-widget-wrap elementor-element-populated\">\n                    \n        \t\t<div class=\"elementor-element elementor-element-e31b40f elementor-widget elementor-widget-shortcode\" data-id=\"e31b40f\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t            <\/div>\n        <\/div>\n                    <\/div>\n        <\/section>\n        \t\t<\/div>\n\t\t\n<div class=\"article-space\"><\/div>\n<div class=\"ack-formula\"><b>Note:\u00a0<\/b>Compiling from source takes more time than using the package manager. Also, remember that this version might be less stable. Use this method if you need the latest features directly from the source code.<\/div>\n<p><strong id=\"Method-3\"><\/strong><\/p>\n<div class=\"article-extra-space\"><\/div>\n<p>You&#8217;ve successfully compiled and installed Nmap from its source code. While this method has a few extra steps, it gives you access to the newest features Nmap has to offer.<\/p>\n<h3 class=\"ack-h3\">Method 3: Installing Nmap Using Snap<\/h3>\n<p>If you want an easy way to install Nmap without dealing with dependencies or updating your package list, Snap is a great option. Snap is a universal package manager that comes pre-installed on Ubuntu 16.04 and later. This method ensures you get the latest Nmap version without compiling or resolving dependencies. Here&#8217;s how to do it:<\/p>\n<p><b>Step 1:<\/b>\u00a0Log into your server through web ssh or ssh clients such as Bitwise or Putty.<\/p>\n<p><b>Step 2:\u00a0<\/b>Type the following command and press Enter to install Nmap.<\/p>\n<pre><code class=\"language-javascript\"><b># snap install nmap<\/b><\/code><\/pre>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-2-11.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50472 size-full\" title=\"Install Nmap\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-2-11.png\" alt=\"Install Nmap\" width=\"918\" height=\"494\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-2-11.png 918w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-2-11-300x161.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-2-11-768x413.png 768w\" sizes=\"(max-width: 918px) 100vw, 918px\" \/><\/a><\/p>\n<p><b>Step 3:<\/b>\u00a0To verify the installation, type:<\/p>\n<pre><code class=\"language-javascript\"><b># nmap -v<\/b><\/code><\/pre>\n<p><a href=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-3-10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"ack-article-image aligncenter wp-image-50473 size-full\" title=\"Verify the installation\" src=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-3-10.png\" alt=\"Verify the installation\" width=\"947\" height=\"279\" srcset=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-3-10.png 947w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-3-10-300x88.png 300w, https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2025\/01\/Step-3-10-768x226.png 768w\" sizes=\"(max-width: 947px) 100vw, 947px\" \/><\/a><\/p>\n<p>This will show the version of Nmap you just installed.<\/p>\n<p>Installing with Snap gives you one of the most updated versions of Nmap.<\/p>\n<div class=\"ack-formula\"><b>Note:<\/b>\u00a0Snap packages are usually larger than those installed with apt or compiled from source because they include all necessary dependencies. Keep this in mind if you&#8217;re short on <a class=\"ack-link-color\" href=\"https:\/\/accuweb.cloud\/storage\" target=\"_blank\" rel=\"noopener\">storage<\/a> space.<\/div>\n<p><strong id=\"Conclusion\"><\/strong><\/p>\n<div class=\"article-space\"><\/div>\n<p>You&#8217;ve successfully installed Nmap using Snap. This method is perfect for a quick installation without worrying about dependencies or package updates.<\/p>\n<h2 class=\"ack-h2\">Conclusion<\/h2>\n<p>By following these steps, you&#8217;ve equipped yourself with Nmap, a powerful tool for analyzing and securing your network. Always use Nmap responsibly and ethically to promote a safe digital environment.<\/p>\n<div class=\"cta-btn-top-space ack-extra-image-space\"><\/div>\n\t\t<div data-elementor-type=\"section\" data-elementor-id=\"38668\" class=\"elementor elementor-38668\" data-elementor-settings=\"{&quot;ha_cmc_init_switcher&quot;:&quot;no&quot;}\" data-elementor-post-type=\"elementor_library\">\n\t\t\t        <section class=\"elementor-section elementor-top-section elementor-element elementor-element-882321f elementor-section-boxed elementor-section-height-default elementor-section-height-default ct-header-fixed-none ct-row-max-none\" data-id=\"882321f\" data-element_type=\"section\" data-settings=\"{&quot;_ha_eqh_enable&quot;:false}\">\n            \n                        <div class=\"elementor-container elementor-column-gap-default \">\n                    <div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7cc79cc\" data-id=\"7cc79cc\" data-element_type=\"column\">\n        <div class=\"elementor-widget-wrap elementor-element-populated\">\n                    \n        \t\t<div class=\"elementor-element elementor-element-e31b40f elementor-widget elementor-widget-shortcode\" data-id=\"e31b40f\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t            <\/div>\n        <\/div>\n                    <\/div>\n        <\/section>\n        \t\t<\/div>\n\t\t\n<div class=\"article-space\"><\/div>\n","protected":false},"author":1,"featured_media":52879,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","class_list":["post-50459","faq","type-faq","status-publish","has-post-thumbnail","hentry","faq_topics-install-nmap","faq_topics-kb","faq_topics-product-documentation","faq_topics-ubuntu"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.10 (Yoast SEO v24.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Installing Nmap on Ubuntu: Step-by-Step Guide<\/title>\n<meta name=\"description\" content=\"Learn how to install Nmap on Ubuntu easily with this step-by-step guide for network scanning and security auditing.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install NMAP on Ubuntu?\" \/>\n<meta property=\"og:description\" content=\"Learn how to install Nmap on Ubuntu easily with this step-by-step guide for network scanning and security auditing.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu\" \/>\n<meta property=\"og:site_name\" content=\"AccuWeb Cloud\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-17T13:27:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu#article\",\"isPartOf\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu\"},\"author\":{\"name\":\"Jilesh Patadiya\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58\"},\"headline\":\"How to install NMAP on Ubuntu?\",\"datePublished\":\"2025-01-27T13:44:20+00:00\",\"dateModified\":\"2026-02-17T13:27:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu\"},\"wordCount\":793,\"publisher\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#organization\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu#primaryimage\"},\"thumbnailUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"inLanguage\":\"en-US\"},{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu\",\"url\":\"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu\",\"name\":\"Installing Nmap on Ubuntu: Step-by-Step Guide\",\"isPartOf\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu#primaryimage\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu#primaryimage\"},\"thumbnailUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"datePublished\":\"2025-01-27T13:44:20+00:00\",\"dateModified\":\"2026-02-17T13:27:23+00:00\",\"description\":\"Learn how to install Nmap on Ubuntu easily with this step-by-step guide for network scanning and security auditing.\",\"breadcrumb\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu#primaryimage\",\"url\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"contentUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg\",\"width\":1280,\"height\":720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/accuweb.cloud\/resource\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install NMAP on Ubuntu?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#website\",\"url\":\"https:\/\/accuweb.cloud\/resource\/\",\"name\":\"AccuWeb Cloud\",\"description\":\"Cutting Edge Cloud Computing\",\"publisher\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/accuweb.cloud\/resource\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#organization\",\"name\":\"AccuWeb.Cloud\",\"url\":\"https:\/\/accuweb.cloud\/resource\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg\",\"contentUrl\":\"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg\",\"width\":156,\"height\":87,\"caption\":\"AccuWeb.Cloud\"},\"image\":{\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58\",\"name\":\"Jilesh Patadiya\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g\",\"caption\":\"Jilesh Patadiya\"},\"description\":\"Jilesh Patadiya, the visionary Co-Founder and Chief Technology Officer (CTO) behind AccuWeb.Cloud. Founder &amp; CTO at AccuWebHosting.com. He shares his web hosting insights on the AccuWeb.Cloud blog. He mostly writes on the latest web hosting trends, WordPress, storage technologies, and Windows and Linux hosting platforms.\",\"sameAs\":[\"https:\/\/accuweb.cloud\/resource\",\"https:\/\/www.facebook.com\/accuwebhosting\",\"https:\/\/www.instagram.com\/accuwebhosting\/\",\"https:\/\/www.linkedin.com\/company\/accuwebhosting\/\",\"https:\/\/x.com\/accuwebhosting\",\"https:\/\/www.youtube.com\/c\/Accuwebhosting\"],\"url\":\"https:\/\/accuweb.cloud\/resource\/author\/accuwebadmin\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Installing Nmap on Ubuntu: Step-by-Step Guide","description":"Learn how to install Nmap on Ubuntu easily with this step-by-step guide for network scanning and security auditing.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu","og_locale":"en_US","og_type":"article","og_title":"How to install NMAP on Ubuntu?","og_description":"Learn how to install Nmap on Ubuntu easily with this step-by-step guide for network scanning and security auditing.","og_url":"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu","og_site_name":"AccuWeb Cloud","article_modified_time":"2026-02-17T13:27:23+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu#article","isPartOf":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu"},"author":{"name":"Jilesh Patadiya","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58"},"headline":"How to install NMAP on Ubuntu?","datePublished":"2025-01-27T13:44:20+00:00","dateModified":"2026-02-17T13:27:23+00:00","mainEntityOfPage":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu"},"wordCount":793,"publisher":{"@id":"https:\/\/accuweb.cloud\/resource\/#organization"},"image":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu#primaryimage"},"thumbnailUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","inLanguage":"en-US"},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu","url":"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu","name":"Installing Nmap on Ubuntu: Step-by-Step Guide","isPartOf":{"@id":"https:\/\/accuweb.cloud\/resource\/#website"},"primaryImageOfPage":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu#primaryimage"},"image":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu#primaryimage"},"thumbnailUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","datePublished":"2025-01-27T13:44:20+00:00","dateModified":"2026-02-17T13:27:23+00:00","description":"Learn how to install Nmap on Ubuntu easily with this step-by-step guide for network scanning and security auditing.","breadcrumb":{"@id":"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu#primaryimage","url":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","contentUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/07\/NEW-OG-IMAGE-URL.jpg","width":1280,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/accuweb.cloud\/resource\/articles\/installing-nmap-on-ubuntu#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/accuweb.cloud\/resource\/"},{"@type":"ListItem","position":2,"name":"How to install NMAP on Ubuntu?"}]},{"@type":"WebSite","@id":"https:\/\/accuweb.cloud\/resource\/#website","url":"https:\/\/accuweb.cloud\/resource\/","name":"AccuWeb Cloud","description":"Cutting Edge Cloud Computing","publisher":{"@id":"https:\/\/accuweb.cloud\/resource\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/accuweb.cloud\/resource\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/accuweb.cloud\/resource\/#organization","name":"AccuWeb.Cloud","url":"https:\/\/accuweb.cloud\/resource\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/","url":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg","contentUrl":"https:\/\/accuweb.cloud\/resource\/wp-content\/uploads\/2024\/04\/accuwebcloud_logo_black_tagline.jpg","width":156,"height":87,"caption":"AccuWeb.Cloud"},"image":{"@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/a7a4cbe8405202b537509c757b588c58","name":"Jilesh Patadiya","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/accuweb.cloud\/resource\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2cea2bdb5bbabb771ee67e96acad7396f25cb1a0c360b9bc4a9ac40cea9cd8b2?s=96&d=mm&r=g","caption":"Jilesh Patadiya"},"description":"Jilesh Patadiya, the visionary Co-Founder and Chief Technology Officer (CTO) behind AccuWeb.Cloud. Founder &amp; CTO at AccuWebHosting.com. He shares his web hosting insights on the AccuWeb.Cloud blog. He mostly writes on the latest web hosting trends, WordPress, storage technologies, and Windows and Linux hosting platforms.","sameAs":["https:\/\/accuweb.cloud\/resource","https:\/\/www.facebook.com\/accuwebhosting","https:\/\/www.instagram.com\/accuwebhosting\/","https:\/\/www.linkedin.com\/company\/accuwebhosting\/","https:\/\/x.com\/accuwebhosting","https:\/\/www.youtube.com\/c\/Accuwebhosting"],"url":"https:\/\/accuweb.cloud\/resource\/author\/accuwebadmin"}]}},"_links":{"self":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq\/50459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/comments?post=50459"}],"version-history":[{"count":8,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq\/50459\/revisions"}],"predecessor-version":[{"id":52949,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/faq\/50459\/revisions\/52949"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/media\/52879"}],"wp:attachment":[{"href":"https:\/\/accuweb.cloud\/resource\/wp-json\/wp\/v2\/media?parent=50459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}