How To Install nmh on Ubuntu 22.04

In this tutorial we learn how to install nmh on Ubuntu 22.04. nmh is set of electronic mail handling programs

Introduction

In this tutorial we learn how to install nmh on Ubuntu 22.04.

What is nmh

nmh is:

This is the nmh mail user agent (reader/sender), a command-line based mail reader that is powerful and extensible. nmh is an excellent choice for people who receive and process a lot of mail.

Unlike most mail user agents, nmh is not a single program, rather it is a set of programs that are run from the shell. This allows the user to utilize the full power of the Unix shell in coordination with nmh. Various front-ends are available, such as mh-e (an emacs mode), xmh, and exmh (X11 clients).

nmh was originally based on MH version 6.8.3, and is intended to be a (mostly) compatible drop-in replacement for MH.

There are three methods to install nmh on Ubuntu 22.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 nmh Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install nmh

Install nmh Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install nmh

Install nmh 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 nmh using aptitude by running the following command:

sudo aptitude -y install nmh

How To Uninstall nmh on Ubuntu 22.04

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

sudo apt-get remove nmh

Uninstall nmh And Its Dependencies

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

sudo apt-get -y autoremove nmh

Remove nmh Configurations and Data

To remove nmh configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge nmh

Remove nmh configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge nmh

References

Summary

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