How To Install nmh on CentOS 7

In this tutorial we learn how to install nmh on CentOS 7. nmh is A capable MIME-email-handling system with a command-line interface

Introduction

In this tutorial we learn how to install nmh on CentOS 7.

What is nmh

nmh is a collection of single-purpose programs that send, receive, show, search, and otherwise manipulate emails, including MIME. They combine well with other Unix programs, easing the development of custom shorthand commands as shell scripts. Optional GUI interfaces are provided by the external xmh and exmh projects. nmh is a descendant of the RAND MH, Mail Handler, project.

We can use yum or dnf to install nmh on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install nmh.

Install nmh on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install nmh

Install nmh on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install nmh

How To Uninstall nmh on CentOS 7

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

sudo dnf remove nmh

References

Summary

In this tutorial we learn how to install nmh on CentOS 7 using yum and dnf.