How To Install nmh on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
3 minutes • 444 words
Introduction
In this tutorial we learn how to install nmh
on Ubuntu.
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. 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
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, 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 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
Dependencies
nmh have the following dependencies:
- libc6
- libcurl4
- libdb5.3
- liblockfile1
- libreadline8
- libsasl2-2
- libssl3
- libtinfo6
- netbase
- mime-support
- sensible-utils
- libsasl2-modules
References
Summary
In this tutorial we learn how to install nmh
package on Ubuntu using different package management tools: apt, apt-get and aptitude.