pkg.soopen package index

brew / rank 686

Install pcre with Homebrew, apk, MacPorts, Nix, pacman, apt, scoop

Perl compatible regular expressions library. Version 8.45 via Homebrew; verified 2026-09-10. Also installable with nix: nix profile install nixpkgs#pcre.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install pcre

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install pcre

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

Linux

Alpine Linux apkverified · 92%
sudo apk add pcre

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

Nixverified · 92%
nix profile install nixpkgs#pcre

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

Arch Linux pacmanverified · 92%
sudo pacman -S pcre

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

Ubuntu aptverified · 92%
sudo apt install pcregrep

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

Windows

Scoopverified · 92%
scoop install main/pcregrep

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

overview

Package summary

Perl compatible regular expressions library

Commands and aliases

  • pcre-config
  • pcregrep
  • pcretest

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 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.

Sources

  • 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

security posture

Risk level: green

library-like package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • library-like package without higher-risk signals

Signals

  • metadata:library-like

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
pcre-configcliglobal executable
pcregrepcliglobal executable
pcretestcliglobal executable

freshness

Version and 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.

page generated2026-09-19
manager version8.45
manager updated2026-09-10
local dataok
upstreamnot checked
latest detectednot detected

https://www.pcre.org/

  • infoRelease/tag comparison is only available for GitHub repositories.https://www.pcre.org/none confidence

install metadata

Package metadata

Package keybrew:pcre
Version8.45
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/pcre
Homepagehttps://www.pcre.org/
Upstream docshttps://www.pcre.org/
LicenseBSD-3-Clause
Source archivehttps://downloads.sourceforge.net/project/pcre/pcre/8.45/pcre-8.45.tar.bz2
Last updated2026-09-10T23:22:41Z
Pulseupdated
Uses from macOSbzip2
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

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

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

pcre

nix profile install nixpkgs#pcre
  • normalized package name match
  • Matched by: 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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: 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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: 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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: 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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: 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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: 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
  • Matched by: 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
  • Matched by: 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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: 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 dependencies
  • 5 provides
  • normalized package name match
  • Matched by: 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
  • Matched by: 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 dependencies
  • installed executable or alias match
  • Matched by: 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
  • Matched by: 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

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • 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