grepcidr command not found

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

Introduction

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

grepcidr: command not found

or when using sudo you get the following error message

sudo: grepcidr: command not found

Solutions to grepcidr: command not found

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

In Ubuntu grepcidr is provided by grepcidr package.

grepcidr is:

grepcidr can be used to filter a list of IP addresses against one or more Classless Inter-Domain Routing (CIDR) specifications, or arbitrary networks specified by an address range. As with grep, there are options to invert matching and load patterns from a file. grepcidr is capable of comparing thousands or even millions of IPs to networks with little memory usage and in reasonable computation time.

grepcidr has endless uses in network software, including: mail filtering and processing, network security, log analysis, and many custom applications.

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

sudo apt-get -y install grepcidr

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

You can also use apt command to install grepcidr.

sudo apt -y install grepcidr

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

sudo aptitude install grepcidr

Summary

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