imhist command not found

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

Introduction

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

imhist: command not found

or when using sudo you get the following error message

sudo: imhist: command not found

Solutions to imhist: command not found

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

In Ubuntu imhist is provided by im package.

im is:

IM (Internet Message) provides a series of user interface commands (imput, imget, imls, …) and backend Perl5 modules to integrate E-mail and NetNews user interface. They are designed to be used both from Mew version 1.x and on command line.

The folder style for IM is exactly the same as that of MH. So, you can replace MH with this package without any migration works. Moreover, you are able to operate your messages both by IM and MH with consistent manner.

Mail/news messages are dispatched by way of SMTP/NNTP and are retrieved from local mailbox (mbox file, Maildir, MMDF file, MH folder), POP3 server (plain password, APOP), IMAP server, or NNTP server.

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

sudo apt-get -y install im

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

You can also use apt command to install im.

sudo apt -y install im

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

sudo aptitude install im

Summary

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