notmuch command not found

In this troubleshooting guide we learn how to fix notmuch command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

notmuch: command not found

or when using sudo you get the following error message

sudo: notmuch: command not found

Solutions to notmuch: command not found

How To Fix notmuch: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu notmuch is provided by notmuch package.

notmuch is:

Notmuch is a system for indexing, searching, reading, and tagging large collections of email messages in maildir or mh format. It uses the Xapian library to provide fast, full-text search with a very convenient search syntax.

This package contains the notmuch command-line interface

To fix this problem, we can install more using the command below.

sudo apt-get -y install notmuch

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install notmuch.

sudo apt -y install notmuch

Or if you have aptitude installed you can use the following command.

sudo aptitude install notmuch

Summary

In this tutorial we learn how to fix notmuch command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.