How To Install mmh on Ubuntu 22.04

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

Introduction

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

What is mmh

mmh is:

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

Unlike most mail user agents, mmh 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 mmh.

Mmh is a modified version of the electronic mail handling system nmh. Nmh (new MH) itself was originally based on the package MH-6.8.3, and was intended to be a (mostly) compatible drop-in replacement for MH. In contrast, mmh is not intended to be a drop-in replacement for nmh, rather mmh breaks compatibility to nmh in order to modernize and simplify it.

There are three methods to install mmh 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 mmh Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install mmh

Install mmh Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install mmh

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

sudo aptitude -y install mmh

How To Uninstall mmh on Ubuntu 22.04

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

sudo apt-get remove mmh

Uninstall mmh And Its Dependencies

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

sudo apt-get -y autoremove mmh

Remove mmh Configurations and Data

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

sudo apt-get -y purge mmh

Remove mmh configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge mmh

References

Summary

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