How To Install whichman on Ubuntu 18.04

In this tutorial we learn how to install whichman on Ubuntu 18.04. whichman is Fault tolerant search utilities

Introduction

In this tutorial we learn how to install whichman on Ubuntu 18.04.

What is whichman

whichman is:

whichman uses a fault tolerant approximate matching algorithm to search for man-pages that match approximately the specified name. The fault tolerant matching is very useful in cases where you remember only roughly the name of a command.

Example: whichman netwhat
This finds netstat.8: /usr/share/man/man8/netstat.8

ftff searches the directory tree. This is a case in-sensitive and fault tolerant way of ‘find . -name xxxx -print’.

ftwhich finds files which are in one of the directories in your PATH and uses a fault tolerant search algorithm.

There are three methods to install whichman on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install whichman Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install whichman using apt-get by running the following command:

sudo apt-get -y install whichman

Install whichman Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install whichman using apt by running the following command:

sudo apt -y install whichman

Install whichman Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install whichman using aptitude by running the following command:

sudo aptitude -y install whichman

How To Uninstall whichman on Ubuntu 18.04

To uninstall only the whichman package we can use the following command:

sudo apt-get remove whichman

Uninstall whichman And Its Dependencies

To uninstall whichman and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove whichman

Remove whichman Configurations and Data

To remove whichman configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge whichman

Remove whichman configuration, data, and all of its dependencies

We can use the following command to remove whichman configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge whichman

References

Summary

In this tutorial we learn how to install whichman package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.