Ways to Install and Uninstall whois on Ubuntu 22.04

Updated: September 23, 2022

This package provides a commandline client for the WHOIS (RFC 3912) protocol, which queries online servers for information such as contact details for domains and IP address assignments. It can intelligently select the appropriate WHOIS server for most queries. In this guide, I will show you ways to install whois Ubuntu 22.04.

Prerequisites to install

  • Operating system: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Ascertain that you are able to execute sudo commands.

Prerequisites to install whois on Ubuntu 22.04

Install whois Ubuntu 22.04

whois 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 whois 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 whois on your Ubuntu 22.04.

Step 1: You must update the APT package repository cache before attempting 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 the package installation on Ubuntu 22.04. After updating, you can install whois Ubuntu by executing this command in the terminal.

sudo apt install whois

Install whois 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 -y install aptitude

After that, you can now install whois by following these steps:

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Obtain new packages from Ubuntu by updating the APT database. Launch the terminal and enter the following Linux command:

sudo apt -y update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install whois Ubuntu by pasting this command into the terminal and pressing Enter.

sudo aptitude install whois

Uninstall whois on Ubuntu 22.04

Have you ever considered how difficult it is to uninstall an application from Ubuntu? You are mistaken; anyone, not just package administrators, can easily uninstall any program.

If you installed whois using APT or Aptitude, you could uninstall whois on Ubuntu by following this step:

sudo apt remove --auto-remove whois

You can also execute this command if you want to uninstall whois and remove its data and dependencies:

sudo apt autoremove --purge whois

Summary

In this tutorial, I showed you ways to install whois on Ubuntu 22.04 and ways to uninstall whois too. Please contact me if you require any assistance. I’d be delighted to respond.