pkg.soopen package index

brew / 排名 11

使用 Homebrew, apk, dnf, Nix, pacman, apt, zypper, scoop 安装 pcre2

查看 pcre2 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install pcre2

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add pcre2

Alpine Linux edge package indexes · pcre2 · 来源: dl-cdn.alpinelinux.org

Fedora dnf已验证 · 92%
sudo dnf install pcre2

Fedora Rawhide package metadata · pcre2 · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#pcre2

nixpkgs package indexes · pkgs/by-name/pc/pcre2/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S pcre2

Arch Linux sync databases · pcre2 · 来源: geo.mirror.pkgbuild.com

Debian apt已验证 · 92%
sudo apt install libpcre2-16-0

Debian stable package indexes · libpcre2-16-0 · 来源: deb.debian.org

openSUSE zypper已验证 · 92%
sudo zypper install libpcre2-16-0

openSUSE Tumbleweed package metadata · libpcre2-16-0 · 来源: download.opensuse.org

Windows

Scoop已验证 · 92%
scoop install main/pcre2grep

Scoop official bucket manifest trees · bucket/pcre2grep.json · 来源: api.github.com

概览

软件包摘要

Perl compatible regular expressions library with a new API

命令和别名

  • pcre2-config
  • pcre2grep
  • pcre2test

历史

项目历史与用法

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.

时间线

  • 2015: PCRE2 10.00 introduced the redesigned API generation.
  • 2021: The original PCRE line reached its final release, leaving PCRE2 as the maintained generation.

Related projects

  • PCRE1 is the compatibility predecessor; migration requires source changes because PCRE2 exposes a redesigned API.
  • Perl remains the principal syntax and semantics reference for PCRE2's regular-expression behavior.

安全态势

风险级别:绿色

library-like package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • library-like package without higher-risk signals

信号

  • metadata:library-like

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 5 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
pcre2-configcli全局可执行文件
pcre2grepcli全局可执行文件
pcre2testcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-11-04
管理器版本10.49
管理器更新时间2026-09-29
本地数据OK
上游not checked
检测到的最新版本未检测到

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
Pulseupdated
macOS 提供的库bzip2
Bottle可用 (于 arm64_golden_gate, arm64_linux, arm64_sequoia, arm64_tahoe, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namepcre2
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

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-0
  • Section: libs
  • Architecture: amd64
  • Source Package: pcre2
  • 1 依赖
  • normalized package name match
  • 匹配方式:Pcre2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libpcre2-16-0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libpcre2-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-0
  • Section: libs
  • Architecture: amd64
  • Source Package: pcre2
  • 1 依赖
  • normalized package name match
  • 匹配方式:Pcre2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libpcre2-32-0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libpcre2-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-0
  • Section: libs
  • Architecture: amd64
  • Source Package: pcre2
  • 1 依赖
  • normalized package name match
  • 匹配方式:Pcre2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libpcre2-8-0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libpcre2-dev 10.46-1~deb13u1

New Perl Compatible Regular Expression Library - development files

https://github.com/PCRE2Project/pcre2

sudo apt install libpcre2-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: pcre2
  • 5 依赖
  • normalized package name match
  • 匹配方式:Pcre2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libpcre2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libpcre2-posix3 10.46-1~deb13u1

New Perl Compatible Regular Expression Library - posix-compatible runtime files

https://github.com/PCRE2Project/pcre2

sudo apt install libpcre2-posix3
  • Section: libs
  • Architecture: amd64
  • Source Package: pcre2
  • 2 依赖
  • normalized package name match
  • 匹配方式:Pcre2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libpcre2-posix3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

pcre2-utils 10.46-1~deb13u1

New Perl Compatible Regular Expression Library - utilities

https://github.com/PCRE2Project/pcre2

sudo apt install pcre2-utils
  • Section: utils
  • Architecture: amd64
  • Source Package: pcre2
  • 5 依赖
  • normalized package name match
  • 匹配方式:Pcre2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: pcre2-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

pcre2

nix profile install nixpkgs#pcre2
  • normalized package name match
  • 匹配方式:Pcre2
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/pc/pcre2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

libpcre2-16-0 10.42-4ubuntu2

New Perl Compatible Regular Expression Library - 16 bit runtime files

https://pcre.org/

sudo apt install libpcre2-16-0
  • Section: libs
  • Architecture: amd64
  • Source Package: pcre2
  • 1 依赖
  • normalized package name match
  • 匹配方式:Pcre2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libpcre2-16-0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libpcre2-32-0 10.42-4ubuntu2

New Perl Compatible Regular Expression Library - 32 bit runtime files

https://pcre.org/

sudo apt install libpcre2-32-0
  • Section: libs
  • Architecture: amd64
  • Source Package: pcre2
  • 1 依赖
  • normalized package name match
  • 匹配方式:Pcre2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libpcre2-32-0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libpcre2-8-0 10.42-4ubuntu2

New Perl Compatible Regular Expression Library- 8 bit runtime files

https://pcre.org/

sudo apt install libpcre2-8-0
  • Section: libs
  • Architecture: amd64
  • Source Package: pcre2
  • 1 依赖
  • normalized package name match
  • 匹配方式:Pcre2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libpcre2-8-0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libpcre2-dev 10.42-4ubuntu2

New Perl Compatible Regular Expression Library - development files

https://pcre.org/

sudo apt install libpcre2-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: pcre2
  • 5 依赖
  • normalized package name match
  • 匹配方式:Pcre2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libpcre2-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libpcre2-posix3 10.42-4ubuntu2

New Perl Compatible Regular Expression Library - posix-compatible runtime files

https://pcre.org/

sudo apt install libpcre2-posix3
  • Section: libs
  • Architecture: amd64
  • Source Package: pcre2
  • 2 依赖
  • normalized package name match
  • 匹配方式:Pcre2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libpcre2-posix3 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

pcre2-utils 10.42-4ubuntu2

New Perl Compatible Regular Expression Library - utilities

https://pcre.org/

sudo apt install pcre2-utils
  • Section: universe/utils
  • Architecture: amd64
  • Source Package: pcre2
  • 5 依赖
  • normalized package name match
  • 匹配方式:Pcre2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: pcre2-utils from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

libpcre2-16 10.47-r1

PCRE2 with 16 bit character support

https://pcre.org/

sudo apk add libpcre2-16
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: pcre2
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Pcre2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libpcre2-16 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

libpcre2-32 10.47-r1

PCRE2 with 32 bit character support

https://pcre.org/

sudo apk add libpcre2-32
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: pcre2
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Pcre2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libpcre2-32 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

pcre2 10.47-r1

Perl-compatible regular expression library

https://pcre.org/

sudo apk add pcre2
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: pcre2
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Pcre2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: pcre2 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

来源线索

由仓库数据生成

此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation