macOS
brew install pdfgreplocal Homebrew formula metadata
sudo port install pdfgrepMacPorts ports tree · textproc/pdfgrep/Portfile · 来源: api.github.com
安装
brew install pdfgreplocal Homebrew formula metadata
sudo port install pdfgrepMacPorts ports tree · textproc/pdfgrep/Portfile · 来源: api.github.com
sudo apk add pdfgrepAlpine Linux edge package indexes · pdfgrep · 来源: dl-cdn.alpinelinux.org
sudo apt install pdfgrepDebian stable package indexes · pdfgrep · 来源: deb.debian.org
sudo dnf install pdfgrepFedora Rawhide package metadata · pdfgrep · 来源: dl.fedoraproject.org
nix profile install nixpkgs#pdfgrepnixpkgs package indexes · pkgs/by-name/pd/pdfgrep/package.nix · 来源: api.github.com
sudo pacman -S pdfgrepArch Linux sync databases · pdfgrep · 来源: geo.mirror.pkgbuild.com
sudo zypper install pdfgrepopenSUSE Tumbleweed package metadata · pdfgrep · 来源: download.opensuse.org
概览
Search PDFs for strings matching a regular expression
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
pdfgrep | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:pdfgrep |
|---|---|
| 版本 | 2.2.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/pdfgrep |
| 主页 | https://pdfgrep.org/ |
| 上游文档 | https://pdfgrep.org/ |
| 许可证 | GPL-2.0-or-later |
| 源码归档 | https://pdfgrep.org/download/pdfgrep-2.2.0.tar.gz |
| 最后更新 | 2026-09-13T06:33:17Z |
| Pulse | updated |
| 依赖 | libgcrypt, libgpg-error, pcre2, poppler |
| 构建依赖 | pkgconf |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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 pdfgrep来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.