agrep command not found

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

Introduction

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

agrep: command not found

or when using sudo you get the following error message

sudo: agrep: command not found

Solutions to agrep: command not found

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

In Ubuntu agrep is provided by glimpse package.

glimpse is:

Glimpse, which stands for GLobal IMPlicit SEarch, is a very popular UNIX indexing and query system that allows you to search through a large set of files very quickly. Glimpse supports most of agrep’s options (agrep is our powerful version of grep) including approximate matching (e.g., finding misspelled words), Boolean queries, and even some limited forms of regular expressions.

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

sudo apt-get -y install glimpse

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

You can also use apt command to install glimpse.

sudo apt -y install glimpse

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

sudo aptitude install glimpse

Summary

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