Ways to Install and Uninstall nmap-common on Ubuntu 22.04

Updated: October 21, 2022

Nmap is a utility for network exploration or security auditing. It supports ping scanning (determine which hosts are up), many port scanning techniques, version detection (determine service protocols and application versions listening behind ports), and TCP/IP fingerprinting (remote host OS or device identification). Nmap also offers flexible target and port specification, decoy/stealth scanning, sunRPC scanning, and more. Most Unix and Windows platforms are supported in both GUI and commandline modes. Several popular handheld devices are also supported, including the Sharp Zaurus and the iPAQ. In this tutorial, I will show you ways to install nmap-common Ubuntu 22.04.

Software Requirement

  • Operating system: nmap-common needs Ubuntu 22.04 to work
  • Privileges: Ensure that you are able to execute the sudo commands line.

Prerequisites to install nmap-common on Ubuntu 22.04

Install nmap-common Ubuntu 22.04

nmap-common is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one you believe is simple and easy to follow.

Install nmap-common using APT

This is one of the most popular methods for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to install nmap-common on your Ubuntu.

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt-get -y update

Step 2: Start installing the packages on Ubuntu 22.04. You can now install nmap-common Ubuntu by executing this command in the terminal.

sudo apt -y install nmap-common

Install nmap-common using Aptitude

With Aptitude, users can view a list of available packages and manage their installation, upgrade, and removal of packages. If you didn’t install it on Ubuntu, you need to install it by executing this command.

sudo apt-get install aptitude

After installing it, you can now install nmap-common, just following these steps:

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt update

Step 2: Start installing the packages on Ubuntu 22.04. You can now install nmap-common Ubuntu by executing this command in the terminal.

sudo aptitude -y install nmap-common

Uninstall nmap-common on Ubuntu 22.04

Have you ever considered how challenging it might be to uninstall an application from Ubuntu? You’re wrong, anyone can easily uninstall any program, not just a nmap-common.

If you installed nmap-common using APT or Aptitude, you could uninstall nmap-common on Ubuntu by running this command

sudo apt remove --auto-remove nmap-common

If you want to uninstall nmap-common and delete its data and dependencies, you can also run the following command:

sudo apt autoremove --purge nmap-common

Conclusion

In this guide, I showed you ways to install nmap-common on Ubuntu 22.04 and some ways to uninstall nmap-common too. Please do not hesitate to contact me if you require assistance. I’m delighted to respond.