The program ‘whois’ is currently not installed – How to Install whois Command Ubuntu/Debian Server

The program ‘whois’ is currently not installed – How to Install whois Command Ubuntu/Debian Server

 

Error :
$ whois google.com

The program ‘whois’ is currently not installed. You can install it by typing:
sudo apt-get install whois

How to Install whois command on Ubuntu/Debian Server

On Most of the servers whois command will be installed by default. The above error shows whois command is not installed on your Ubuntu/Debian Linux Server.

1. Log into your Ubuntu/Debian Server via SSH as root

You can use software like ‘putty’ to SSH.

2. Run the command ‘sudo apt-get install whois’ to install whois command

Command to install whois command on ubuntu/debian server: sudo apt-get install whois
 

steve@steve-PC12 ~ $ sudo apt-get install whois
[sudo] password for steve:
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
whois
0 upgraded, 1 newly installed, 0 to remove and 306 not upgraded.
Need to get 30.2 kB of archives.
After this operation, 164 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main whois amd64 5.1.1 [30.2 kB]
Fetched 30.2 kB in 0s (34.8 kB/s)
Selecting previously unselected package whois.
(Reading database … 161502 files and directories currently installed.)
Preparing to unpack …/archives/whois_5.1.1_amd64.deb …
Unpacking whois (5.1.1) …
Processing triggers for man-db (2.6.7.1-1ubuntu1) …
Setting up whois (5.1.1) …

steve@steve-PC12 ~ $ whois –version
Version 5.1.1

 
Whois command is now installed on your ubuntu/debian server. Type the command ‘whois –version’ to check whois version.