How to install whois on Ubuntu / Debian Linux

Whois is a command-line utility that allows you to look up information about domain names and IP addresses. On Ubuntu and Debian Linux, you can install whois using the package manager apt.

Here’s an example of how to install whois on Ubuntu or Debian Linux:

  1. Update package list: Before installing whois, you should first update your package list by running the command:
sudo apt update
  1. Install whois: Once your package list is up-to-date, you can install whois by running the following command:
sudo apt install whois
  1. Verify the installation: To verify that whois is installed correctly, you can run the command whois and check the version number that is displayed.

Please note that these commands are for a basic setup and they will install the latest version available of whois, also before installing any package it’s recommended to have a backup plan in case something goes wrong, and also to test the installation before applying it to your production environment.

Also, if you prefer not to use apt, you can also install the whois package using other package managers like dnf or yum, depending on your Linux distribution.

Leave a Comment