How To Install Nmap on Rocky Linux 9

Install Nmap on Rocky Linux 9

In this tutorial, we will show you how to install Nmap on Rocky Linux 9. For those of you who didn’t know, Nmap is a powerful tool that is widely used by network administrators and security professionals to scan networks and perform security assessments. It is available for various platforms, including Linux, Windows, and macOS.

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 Nmap Network Scanner on Rocky Linux. 9.

Nmap features:

  • Host discovery: Nmap can discover hosts on a network by sending various types of packets to the network and analyzing the responses.
  • Port scanning: Nmap can scan a host’s ports to determine which services are running on the host.
  • Operating system detection: Nmap can detect the operating system of a host based on the responses it receives from the host.
  • Service and version detection: Nmap can detect the version of a service running on a host based on the responses it receives from the service.
  • Network mapping: Nmap can create a map of a network by discovering the hosts and services on the network.

Prerequisites

  • A server running one of the following operating systems: Rocky Linux 9.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • A 64-bit x86 compatible CPU
  • SSH access to the server (or just open Terminal if you’re on a desktop).
  • An active internet connection. You’ll need an internet connection to download the necessary packages and dependencies for Nmap.
  • A non-root sudo useror 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 Rocky Linux 9

Step 1. The first step is to update your system to the latest version of the package list. To do so, run the following commands:

sudo dnf check-update
sudo dnf install dnf-utils

Step 2. Installing Nmap Network Scanner on Rocky Linux 9.

By default, Nmap Network Scanner is available on Rocky Linux 9 base repository. Now run the following command below to install the latest version of Nmap to your Rocky Linux system:

sudo dnf install nmap

Verify that Nmap is installed by running the following command:

nmap --version

Step 3. How to Use the Nmap Scanner.

An example Nmap scan of a network might involve using Nmap to discover all hosts on a network and to determine which ports and services are running on each host. This can be useful for network administrators who want to understand the network’s architecture and identify potential security vulnerabilities.

To perform a basic Nmap scan of a network, you can use the following command:

nmap -sV 192.168.1.0/24

This command will scan the network range “192.168.1.0/24” for all hosts and will attempt to determine the version of each service running on each host.

You can also use Nmap to scan specific hosts or specific ports. For example, to scan a single host for all open ports, you can use the following command:

nmap 192.168.1.100

To scan a single host for a specific port, you can use the following command:

nmap -p 80 192.168.1.100

There are many other options and parameters that you can use with Nmap to customize your scan. You can use the “--help” flag to display a list of all available options.

Congratulations! You have successfully installed Nmap. Thanks for using this tutorial for installing Nmap Network Scanner on your Rocky Linux 9 system. For additional help 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!