Guides 11792 Published by

The post explains how to bring the Nmap utility onto Fedora 36 in under five minutes by running a single sudo command. It lists prerequisites such as having root or sudo access, an internet connection for dnf, and a machine that supports the dnf tool. After installing, readers are guided to verify the setup with nmap --version and then run a quick scan of their default gateway using sudo nmap -sV 192.168.1.1. The author shares a personal anecdote about initially missing Nmap on an older Fedora release but fixing it quickly with dnf, encouraging readers to start mapping their own networks.



How to Install Nmap on Fedora 36 Linux

You’ll get the powerful network‑scanning utility up and running in under five minutes, right from your terminal. No fuss, no extra repos, just the official Fedora package manager doing its thing.

Prerequisites
  • A machine running Fedora 36 (or a derivative that still uses the dnf command).
  • Root or sudo privileges—Nmap will need to be installed system‑wide.
  • An active internet connection so dnf can pull the latest package from the Fedora mirrors.
Open Your Terminal

The first thing I do when I want to add a tool is fire up the terminal. You can hit <kbd>Ctrl‑Alt‑T</kbd> or look for “Terminal” in your application launcher. No graphical wizard needed.

Installing Nmap on Fedora 36 Linux

Run this single command:

sudo dnf install nmap -y

Why the -y? It answers “yes” to any prompts automatically, so you won’t have to keep clicking. If you’re a stickler for manual confirmation, drop the flag and read each prompt.

After that line finishes, dnf will resolve dependencies (there aren’t many for Nmap) and copy the binaries into /usr/bin. No extra libraries or config files needed—just what you see when you type nmap.

Verify the Installation

Check that it’s there:

nmap --version

You should get something like

Nmap 7.93 ( https://nmap.org )
Platform: x86_64-linux-gnu
...

If you see a version number, you’re good to go.

Real‑World Check

I once tried scanning my home router the day I upgraded from Fedora 34 to 36. The command line spit out “nmap: command not found.” Turns out I’d never installed it before—classic oversight. Running the dnf install fixed that in seconds, and I was back to discovering open ports on my network.

Quick First Scan

Now try something simple:

sudo nmap -sV 192.168.1.1

That tells Nmap to probe version info on the default gateway. If you get a list of services, congratulations—you’ve just used your new tool.