macOS
brew install pdfgreplocal Homebrew formula metadata
sudo port install pdfgrepMacPorts ports tree · textproc/pdfgrep/Portfile · source: api.github.com
brew / rank 1920
Search PDFs for strings matching a regular expression. Version 2.2.0 via Homebrew; verified 2026-09-13. Also installable with debian: sudo apt install pdfgrep.
install
brew install pdfgreplocal Homebrew formula metadata
sudo port install pdfgrepMacPorts ports tree · textproc/pdfgrep/Portfile · source: api.github.com
sudo apk add pdfgrepAlpine Linux edge package indexes · pdfgrep · source: dl-cdn.alpinelinux.org
sudo apt install pdfgrepDebian stable package indexes · pdfgrep · source: deb.debian.org
sudo dnf install pdfgrepFedora Rawhide package metadata · pdfgrep · source: dl.fedoraproject.org
nix profile install nixpkgs#pdfgrepnixpkgs package indexes · pkgs/by-name/pd/pdfgrep/package.nix · source: api.github.com
sudo pacman -S pdfgrepArch Linux sync databases · pdfgrep · source: geo.mirror.pkgbuild.com
sudo zypper install pdfgrepopenSUSE Tumbleweed package metadata · pdfgrep · source: download.opensuse.org
overview
Search PDFs for strings matching a regular expression
history
pdfgrep is a GPL-licensed command-line utility that searches text in PDF documents using fixed strings or regular expressions and reports matches in a grep-like format.
The official release tags trace pdfgrep from version 1.0 in May 2010 through the 1.x and 2.x series. Version 2.0 arrived in January 2017, and version 2.2.0 was released in March 2024.
The project is maintained by Hans-Peter Deifel and developed in its official GitLab repository.
pdfgrep is packaged across major Unix-like ecosystems, including Homebrew, Debian, Ubuntu, Fedora, Arch, Alpine, openSUSE, MacPorts, and Nix. Its grep-compatible interface makes it easy to add PDF searching to established shell workflows.
Typical uses include searching one or many PDFs, recursively scanning directory trees, showing page numbers and context, counting matches, and filtering results through other Unix commands.
An optional cache is stored under ${XDG_CACHE_HOME}/pdfgrep when --cache is enabled. This is runtime cache data, not a configuration or credentials file.
The --password option can open protected PDFs, but the official man page warns that its value can appear in shell history and process listings.
pdfgrep exemplifies the Unix pattern of extending a familiar text-processing interface to a specialized file format. It composes naturally with find, xargs, and GNU parallel while hiding PDF text extraction behind grep-like options.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
pdfgrep | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:pdfgrep |
|---|---|
| Version | 2.2.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/pdfgrep |
| Homepage | https://pdfgrep.org/ |
| Upstream docs | https://pdfgrep.org/ |
| License | GPL-2.0-or-later |
| Source archive | https://pdfgrep.org/download/pdfgrep-2.2.0.tar.gz |
| Last updated | 2026-09-13T06:33:17Z |
| Pulse | updated |
| Dependencies | libgcrypt, libgpg-error, pcre2, poppler |
| Build dependencies | pkgconf |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | pdfgrep |
| Version Scheme | 0 |
| Revision | 3 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
pdfgrep 2.2.0-0.1+b2
search in pdf files for strings matching a regular expression
sudo apt install pdfgreppdfgrep
nix profile install nixpkgs#pdfgreppdfgrep 2.2.0-0.1
search in pdf files for strings matching a regular expression
sudo apt install pdfgreppdfgrep 2.2.0-r1
Commandline utility to search text in PDF files
sudo apk add pdfgreppdfgrep-bash-completion 2.2.0-r1
Bash completions for pdfgrep
sudo apk add pdfgrep-bash-completionpdfgrep-doc 2.2.0-r1
Commandline utility to search text in PDF files (documentation)
sudo apk add pdfgrep-docpdfgrep-zsh-completion 2.2.0-r1
Zsh completions for pdfgrep
sudo apk add pdfgrep-zsh-completionpdfgrep 2.2.0-10.fc45
Tool to search text in PDF files
sudo dnf install pdfgreppdfgrep 2.2.0-6
A tool to search text in PDF files
sudo pacman -S pdfgreppdfgrep 2.2.0-1.6
Search in pdf files for strings matching a regular expression
sudo zypper install pdfgreppdfgrep-bash-completion 2.2.0-1.6
Bash Completion for pdfgrep
sudo zypper install pdfgrep-bash-completionpdfgrep-zsh-completion 2.2.0-1.6
ZSH completion for pdfgrep
sudo zypper install pdfgrep-zsh-completionpdfgrep
sudo port install pdfgrepsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.