How To Install notmuch-mutt on Ubuntu 18.04

In this tutorial we learn how to install notmuch-mutt on Ubuntu 18.04. notmuch-mutt is thread-based email index, search and tagging (Mutt interface)

Introduction

In this tutorial we learn how to install notmuch-mutt on Ubuntu 18.04.

What is notmuch-mutt

notmuch-mutt is:

notmuch-mutt provides integration among the Mutt mail user agent and the Notmuch mail indexer.

notmuch-mutt offer two main integration features. The first one is the ability of stating a search query interactively and then jump to a fresh Maildir containing its search results only. The second one is the ability to reconstruct threads on the fly starting from the current highlighted mail.

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

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

sudo apt-get update

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

sudo apt-get -y install notmuch-mutt

Install notmuch-mutt Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install notmuch-mutt

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

sudo aptitude -y install notmuch-mutt

How To Uninstall notmuch-mutt on Ubuntu 18.04

To uninstall only the notmuch-mutt package we can use the following command:

sudo apt-get remove notmuch-mutt

Uninstall notmuch-mutt And Its Dependencies

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

sudo apt-get -y autoremove notmuch-mutt

Remove notmuch-mutt Configurations and Data

To remove notmuch-mutt configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge notmuch-mutt

Remove notmuch-mutt configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge notmuch-mutt

References

Summary

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