FedoraRHEL Based

How To Install Nmap on Fedora 39

Install Nmap on Fedora 39

In this tutorial, we will show you how to install Nmap on Fedora 39. Nmap is a powerful tool used for networking and security auditing of networks. It is an open-source tool that is used for mapping networks, auditing, and security scanning of networks. Nmap is helpful for quickly finding useful information about the networks, ports, hosts, and operating systems.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the Nmap on a Fedora 39.

Prerequisites

Before diving into the installation process, let’s ensure that you have everything you need:

  • A server running one of the following operating systems: Fedora 39.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • You will need access to the terminal to execute commands. Fedora 39 provides the Terminal application for this purpose. It can be found in your Applications menu.
  • You’ll need an active internet connection to download Nmap and its dependencies.
  • A non-root sudo user or access to the root user. We recommend acting as a non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root.

Install Nmap on Fedora 39

Step 1. The first step is to update the system. This ensures that the system is up-to-date and that any security vulnerabilities are patched. To update Fedora, execute the following command:

sudo dnf clean all
sudo dnf update

Step 2. Installing Nmap on Fedora 39.

Nmap is available in the default Fedora repository. To install Nmap, execute the following command:

sudo dnf install nmap

Once Nmap is installed, you can verify the installation by checking the version and build of Nmap. To do this, execute the following command:

nmap --version

This command will display the version and build of Nmap that is installed on your system.

Step 3. Nmap Commands.

The Nmap command comes with many options and uses cases depending on the situation at hand. Below are some of the most common and useful Nmap commands in Linux with examples.

  • Scan a Single Host

The Nmap tool offers various methods to scan a system. In this example, we are performing a scan using the hostname as server.idroot.us to find out all open ports, services, and MAC addresses on the system:

nmap server.idroot.us
  • Scan a System with an IP Address

In this example, we are performing a scan using the IP address as 192.168.0.1 to find out all open ports, services, and MAC addresses on the system:

nmap 192.168.0.1
  • Get More Detailed Information

It is used to get more detailed information about the remote machines:

nmap -v www.idroot.us
  • Scan Multiple Hosts

We can scan multiple hosts by writing IP addresses or hostnames with Nmap:

nmap 103.76.228.244 157.240.198.35 172.217.27.174
  • Scan a Whole Subnet

We can scan a whole subnet or IP range with Nmap by providing “*” with it. It will scan a whole subnet and give the information about those hosts that are Up in the Network:

nmap 103.76.228.*
  • Scan for Open Ports

This command is used to scan for open ports on a target system:

nmap -p 1-65535 www.idroot.us
  • Stealth SYN Scan

The -sS flag is used for TCP SYN Scan, which is a stealthy and efficient method of scanning for open ports on a target system:

nmap -sS www.idroot.us
  • Scan for TCP ACK

This command is used to scan for TCP ACK on a target system:

nmap -sA www.idroot.us

Congratulations! You have successfully installed Nmap. Thanks for using this tutorial for installing Nmap on your Fedora 39 system. For additional Apache or useful information, we recommend you check the official Nmap website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!

r00t

r00t is a seasoned Linux system administrator with a wealth of experience in the field. Known for his contributions to idroot.us, r00t has authored numerous tutorials and guides, helping users navigate the complexities of Linux systems. His expertise spans across various Linux distributions, including Ubuntu, CentOS, and Debian. r00t's work is characterized by his ability to simplify complex concepts, making Linux more accessible to users of all skill levels. His dedication to the Linux community and his commitment to sharing knowledge makes him a respected figure in the field.
Back to top button