pdfgrep command not found

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

Introduction

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

pdfgrep: command not found

or when using sudo you get the following error message

sudo: pdfgrep: command not found

Solutions to pdfgrep: command not found

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

In Ubuntu pdfgrep is provided by pdfgrep package.

pdfgrep is:

Pdfgrep is a tool to search text in PDF files. It works similar to `grep'.

Features:

  • search for regular expressions.
  • support for some important grep options, including:
    • filename output.
    • page number output.
    • optional case insensitivity.
    • count occurrences.
  • and the most important feature: color output!

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

sudo apt-get -y install pdfgrep

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

You can also use apt command to install pdfgrep.

sudo apt -y install pdfgrep

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

sudo aptitude install pdfgrep

Summary

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