pcregrep command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pcregrep: command not found
or when using sudo you get the following error message
sudo: pcregrep: command not found
Solutions to pcregrep: command not found
How To Fix pcregrep: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pcregrep is provided by pcregrep package.
pcregrep is:
Perl-style regexps have many useful features that the standard POSIX ones don’t; this is basically the same as grep but with the different regexp syntax.
The other reason for the existence of pcregrep is that its source code is an example of programming with libpcre.
To fix this problem, we can install more using the command below.
sudo apt-get -y install pcregrep
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install pcregrep.
sudo apt -y install pcregrep
Or if you have aptitude installed you can use the following command.
sudo aptitude install pcregrep
Summary
In this tutorial we learn how to fix pcregrep command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.