macOS
brew install pcre2local Homebrew formula metadata
brew / 排名 11
查看 pcre2 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。
安装
brew install pcre2local Homebrew formula metadata
sudo apk add pcre2Alpine Linux edge package indexes · pcre2 · 来源: dl-cdn.alpinelinux.org
sudo dnf install pcre2Fedora Rawhide package metadata · pcre2 · 来源: dl.fedoraproject.org
nix profile install nixpkgs#pcre2nixpkgs package indexes · pkgs/by-name/pc/pcre2/package.nix · 来源: api.github.com
sudo pacman -S pcre2Arch Linux sync databases · pcre2 · 来源: geo.mirror.pkgbuild.com
sudo apt install libpcre2-16-0Debian stable package indexes · libpcre2-16-0 · 来源: deb.debian.org
sudo zypper install libpcre2-16-0openSUSE Tumbleweed package metadata · libpcre2-16-0 · 来源: download.opensuse.org
scoop install main/pcre2grepScoop official bucket manifest trees · bucket/pcre2grep.json · 来源: api.github.com
概览
Perl compatible regular expressions library with a new API
历史
PCRE2 is the maintained Perl-Compatible Regular Expressions library, providing C APIs for pattern compilation and matching, Unicode support, multiple code-unit widths, and optional JIT compilation.
PCRE2 was created after nearly two decades of the original API made further development difficult. The redesign introduced a more extensible interface, automatic optimization, refactored internals, and new functionality under distinct pcre2-prefixed APIs.
The first PCRE2 release established a successor line rather than a drop-in replacement. The original library is now obsolete, while PCRE2 continues as the maintained project.
PCRE2 became the maintained PCRE generation for applications and language bindings needing Perl-compatible matching without embedding Perl. Separate library names allow it to coexist with legacy PCRE during migrations.
Its self-contained, permissively licensed implementation is consumed directly by software and indirectly through runtimes, bindings, and command-line tools.
Developers link libpcre2-8, libpcre2-16, or libpcre2-32 according to the required code-unit width and use the compile and match APIs.
pcre2grep supplies command-line searching, pcre2test supports pattern experiments and diagnostics, and pcre2-config reports build settings.
PCRE2 has no documented runtime configuration or credentials file; Unicode, JIT, and related capabilities are primarily build-time features controlled through APIs at runtime.
PCRE2 is a foundational library in many dependency graphs. Maintainers care about its distinct 8-, 16-, and 32-bit code-unit libraries, optional Unicode and JIT features, and its deliberate ABI break from PCRE1.
The pcre2grep and pcre2test utilities also make the package useful outside compiled applications for searching, experimentation, and diagnostics.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
pcre2-config | cli | 全局可执行文件 | |
pcre2grep | cli | 全局可执行文件 | |
pcre2test | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/PCRE2Project/pcre2
安装元数据
| 软件包键 | brew:pcre2 |
|---|---|
| 版本 | 10.49 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/pcre2 |
| 主页 | https://www.pcre.org/ |
| 仓库 | https://github.com/PCRE2Project/pcre2 |
| 上游文档 | https://www.pcre.org/ |
| 许可证 | BSD-3-Clause |
| 源码归档 | https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.49/pcre2-10.49.tar.bz2 |
| 最后更新 | 2026-09-29T02:35:55Z |
| Pulse | updated |
| macOS 提供的库 | bzip2 |
| Bottle | 可用 (于 arm64_golden_gate, arm64_linux, arm64_sequoia, arm64_tahoe, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | pcre2 |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
libpcre2-16-0 10.46-1~deb13u1
New Perl Compatible Regular Expression Library - 16 bit runtime files
https://github.com/PCRE2Project/pcre2
sudo apt install libpcre2-16-0libpcre2-32-0 10.46-1~deb13u1
New Perl Compatible Regular Expression Library - 32 bit runtime files
https://github.com/PCRE2Project/pcre2
sudo apt install libpcre2-32-0libpcre2-8-0 10.46-1~deb13u1
New Perl Compatible Regular Expression Library- 8 bit runtime files
https://github.com/PCRE2Project/pcre2
sudo apt install libpcre2-8-0libpcre2-dev 10.46-1~deb13u1
New Perl Compatible Regular Expression Library - development files
https://github.com/PCRE2Project/pcre2
sudo apt install libpcre2-devlibpcre2-posix3 10.46-1~deb13u1
New Perl Compatible Regular Expression Library - posix-compatible runtime files
https://github.com/PCRE2Project/pcre2
sudo apt install libpcre2-posix3pcre2-utils 10.46-1~deb13u1
New Perl Compatible Regular Expression Library - utilities
https://github.com/PCRE2Project/pcre2
sudo apt install pcre2-utilspcre2
nix profile install nixpkgs#pcre2libpcre2-16-0 10.42-4ubuntu2
New Perl Compatible Regular Expression Library - 16 bit runtime files
sudo apt install libpcre2-16-0libpcre2-32-0 10.42-4ubuntu2
New Perl Compatible Regular Expression Library - 32 bit runtime files
sudo apt install libpcre2-32-0libpcre2-8-0 10.42-4ubuntu2
New Perl Compatible Regular Expression Library- 8 bit runtime files
sudo apt install libpcre2-8-0libpcre2-dev 10.42-4ubuntu2
New Perl Compatible Regular Expression Library - development files
sudo apt install libpcre2-devlibpcre2-posix3 10.42-4ubuntu2
New Perl Compatible Regular Expression Library - posix-compatible runtime files
sudo apt install libpcre2-posix3pcre2-utils 10.42-4ubuntu2
New Perl Compatible Regular Expression Library - utilities
sudo apt install pcre2-utilslibpcre2-16 10.47-r1
PCRE2 with 16 bit character support
sudo apk add libpcre2-16libpcre2-32 10.47-r1
PCRE2 with 32 bit character support
sudo apk add libpcre2-32pcre2 10.47-r1
Perl-compatible regular expression library
sudo apk add pcre2来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.