afew command not found

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

Introduction

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

afew: command not found

or when using sudo you get the following error message

sudo: afew: command not found

Solutions to afew: command not found

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

In Ubuntu afew is provided by afew package.

afew is:

The basic task of afew is to provide automatic tagging each time new mail is registered with notmuch. In a classic setup, you might call it after ’notmuch new’ in an offlineimap post sync hook.

In addition to more elementary features such as adding tags based on email headers or maildir folders, handling killed threads and spam, it can do some heavy magic in order to /learn/ how to initially tag your mails based on their content.

In move mode, afew will move mails between maildir folders according to configurable rules that can contain arbitrary notmuch queries to match against any searchable attributes.

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

sudo apt-get -y install afew

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

You can also use apt command to install afew.

sudo apt -y install afew

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

sudo aptitude install afew

Summary

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