pkg.soopen package index

brew / 排名 686

使用 Homebrew, apk, MacPorts, Nix, pacman, apt, scoop 安装 pcre

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install pcre

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install pcre

MacPorts ports tree · devel/pcre/Portfile · 来源: api.github.com

Linux

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

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

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

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

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

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

Ubuntu apt已验证 · 92%
sudo apt install pcregrep

Ubuntu 24.04 LTS package indexes · pcregrep · 来源: archive.ubuntu.com

Windows

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

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

概览

软件包摘要

Perl compatible regular expressions library

命令和别名

  • pcre-config
  • pcregrep
  • pcretest

历史

项目历史与用法

PCRE, now commonly called PCRE1, is Philip Hazel's C library implementing Perl-compatible regular-expression matching. The Homebrew pcre formula represents the legacy 8.x API rather than its actively maintained successor, PCRE2.

项目历史

Philip Hazel wrote PCRE at the University of Cambridge as a C implementation of regular-expression matching broadly compatible with Perl syntax and semantics.

The original series expanded from an 8-bit library to optional 16-bit support in release 8.30 and 32-bit support in 8.32. A redesigned API appeared as PCRE2 10.00 in January 2015.

PCRE1 concluded with release 8.45. The official documentation now describes it as obsolete and unmaintained while retaining its manuals for existing applications.

采用历史

PCRE became a widely packaged compatibility layer for Perl-style regular expressions in C and in software embedding a C regex engine. The supplied metadata records availability across Homebrew, Alpine, Arch, Nix, MacPorts, Scoop, and Ubuntu ecosystems.

The original API remains relevant for legacy consumers, but the official documentation marks PCRE1 end-of-life and advises new projects to use PCRE2.

使用方式

Developers link libpcre, libpcre16, or libpcre32 to compile and match Perl-style patterns from C or through language bindings. The legacy distribution also offers a restricted POSIX wrapper and a C++ wrapper.

pcregrep applies PCRE matching from the command line, pcretest exercises patterns and library behavior, and pcre-config reports build and linkage settings.

PCRE has no documented per-user credentials or runtime configuration file; its feature set is principally selected at build time and queried programmatically or with pcre-config.

为什么软件包爱好者会关心

PCRE helped make Perl-like regex syntax available outside the Perl runtime through a small, embeddable C library. Package maintainers care about the distinction between the ABI-incompatible PCRE1 and PCRE2 families because migration requires source changes rather than a simple library replacement.

The package also supplies pcregrep, pcretest, and pcre-config, making it both a development dependency and a useful command-line regex toolkit.

时间线

  • 1997: Copyright and authorship notices identify the beginning of Philip Hazel's PCRE work.
  • 8.30: PCRE added an optional 16-bit library.
  • 8.32: PCRE added an optional 32-bit library.
  • 2015-01-05: PCRE2 10.00 introduced the redesigned successor API.
  • 2021: PCRE1 8.45 became the final original-series release.

Related projects

  • PCRE2 is the actively maintained successor with a redesigned, incompatible API.
  • Perl 5 provides the syntax and semantics that originally inspired PCRE.
  • The PCRE distribution includes POSIX-compatible wrapper functions and the pcregrep and pcretest tools.

来源

  • Official PCRE homepage: https://www.pcre.org/
  • Official PCRE1 documentation index: https://www.pcre.org/original/doc/html/index.html
  • Official PCRE1 specification: https://www.pcre.org/original/doc/html/pcre.html
  • Official PCRE2 NEWS: https://github.com/PCRE2Project/pcre2/blob/main/NEWS
  • Official PCRE2 README: https://github.com/PCRE2Project/pcre2/blob/main/README
  • source_facts.package-manager

安全态势

风险级别:绿色

library-like package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • library-like package without higher-risk signals

信号

  • metadata:library-like

安装行为

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

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
pcre-configcli全局可执行文件
pcregrepcli全局可执行文件
pcretestcli全局可执行文件

新鲜度

版本和新鲜度

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

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

https://www.pcre.org/

  • 信息Release/tag comparison is only available for GitHub repositories.https://www.pcre.org/none 置信度

安装元数据

软件包元数据

软件包键brew:pcre
版本8.45
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/pcre
主页https://www.pcre.org/
上游文档https://www.pcre.org/
许可证BSD-3-Clause
源码归档https://downloads.sourceforge.net/project/pcre/pcre/8.45/pcre-8.45.tar.bz2
最后更新2026-09-10T23:22:41Z
Pulseupdated
macOS 提供的库bzip2
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namepcre
Aliases
  • pcre1
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedyes
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

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

Nix95%

pcre

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

libpcre16 8.45-r4

PCRE with 16 bit character support

https://www.pcre.org/

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

libpcre32 8.45-r4

PCRE with 32 bit character support

https://www.pcre.org/

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

libpcrecpp 8.45-r4

C++ bindings for PCRE

https://www.pcre.org/

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

pcre 8.45-r4

Perl-compatible regular expression library

https://www.pcre.org/

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

pcre-dev 8.45-r4

Perl-compatible regular expression library (development files)

https://www.pcre.org/

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

pcre-doc 8.45-r4

Perl-compatible regular expression library (documentation)

https://www.pcre.org/

sudo apk add pcre-doc
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: pcre
  • normalized package name match
  • 匹配方式:Pcre
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: pcre-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

pcre-static 8.45-r4

Perl-compatible regular expression library (static library)

https://www.pcre.org/

sudo apk add pcre-static
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: pcre
  • normalized package name match
  • 匹配方式:Pcre
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: pcre-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

pcre-tools 8.45-r4

Auxiliary utilities for PCRE

https://www.pcre.org/

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

pcre 8.45-5

A deprecated library that implements Perl 5-style regular expressions

https://www.pcre.org/

sudo pacman -S pcre
  • License: BSD
  • Architecture: x86_64
  • 7 依赖
  • 5 提供
  • normalized package name match
  • 匹配方式:Pcre
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: pcre from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz
MacPorts95%

pcre

sudo port install pcre
  • normalized package name match
  • 匹配方式:Pcre
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/pcre/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Ubuntu apt92%

pcregrep 2:8.39-15build1

grep utility that uses perl 5 compatible regexes.

sudo apt install pcregrep
  • Section: universe/utils
  • Architecture: amd64
  • Source Package: pcre3
  • 2 依赖
  • installed executable or alias match
  • 匹配方式:Pcregrep
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: pcregrep from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Scoop92%

main/pcregrep

scoop install main/pcregrep
  • installed executable or alias match
  • 匹配方式:Pcregrep
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/pcregrep.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/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