# pcre を Homebrew, apk, MacPorts, Nix, pacman, apt, scoop でインストール

pcre のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:pcre
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install pcre
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install pcre
```

  証拠: MacPorts ports tree: devel/pcre/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add pcre
```

  証拠: Alpine Linux edge package indexes: pcre from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#pcre
```

  証拠: nixpkgs package indexes: pkgs/by-name/pc/pcre/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S pcre
```

  証拠: Arch Linux sync databases: pcre from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz

- Ubuntu apt (92%):

```sh
sudo apt install pcregrep
```

  証拠: Ubuntu 24.04 LTS package indexes: pcregrep from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

### Windows

- Scoop (92%):

```sh
scoop install main/pcregrep
```

  証拠: Scoop official bucket manifest trees: bucket/pcregrep.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:pcre
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/pcre>
- **バージョン:** 8.45
- **ソース概要:** Perl compatible regular expressions library
- **ホームページ:** <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-07-11T15:23:35+09:00
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- pcre-config (cli)
- pcregrep (cli)
- pcretest (cli)
- pcre-config (エイリアス)
- pcregrep (エイリアス)
- pcretest (エイリアス)

## macOS 提供ライブラリ

- bzip2

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 8.45
- マネージャ更新日: 2026-07-11
- ローカルデータ: OK
- 上流リポジトリ: https://www.pcre.org/
- 情報: Release/tag comparison is only available for GitHub repositories.

## セキュリティノート

library-like package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- library-like package without higher-risk signals

## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** pcre
- **Aliases:** pcre1
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** yes
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 他のパッケージマネージャ記録

- Nix - pcre: normalized package name match | nixpkgs package indexes: pkgs/by-name/pc/pcre/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - libpcre16 - 8.45-r4: normalized package name match | Alpine Linux edge package indexes: libpcre16 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | PCRE with 16 bit character support | https://www.pcre.org/
- apk - libpcre32 - 8.45-r4: normalized package name match | Alpine Linux edge package indexes: libpcre32 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | PCRE with 32 bit character support | https://www.pcre.org/
- apk - libpcrecpp - 8.45-r4: normalized package name match | Alpine Linux edge package indexes: libpcrecpp from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | C++ bindings for PCRE | https://www.pcre.org/
- apk - pcre - 8.45-r4: normalized package name match | Alpine Linux edge package indexes: pcre from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Perl-compatible regular expression library | https://www.pcre.org/
- apk - pcre-dev - 8.45-r4: normalized package name match | Alpine Linux edge package indexes: pcre-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Perl-compatible regular expression library (development files) | https://www.pcre.org/
- apk - pcre-doc - 8.45-r4: normalized package name match | Alpine Linux edge package indexes: pcre-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Perl-compatible regular expression library (documentation) | https://www.pcre.org/
- apk - pcre-static - 8.45-r4: normalized package name match | Alpine Linux edge package indexes: pcre-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Perl-compatible regular expression library (static library) | https://www.pcre.org/
- apk - pcre-tools - 8.45-r4: normalized package name match | Alpine Linux edge package indexes: pcre-tools from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Auxiliary utilities for PCRE | https://www.pcre.org/
- pacman - pcre - 8.45-4: normalized package name match | Arch Linux sync databases: pcre from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz | A deprecated library that implements Perl 5-style regular expressions | https://www.pcre.org/
- MacPorts - pcre: normalized package name match | MacPorts ports tree: devel/pcre/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Ubuntu apt - pcregrep - 2:8.39-15build1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: pcregrep from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | grep utility that uses perl 5 compatible regexes.
- Scoop - main/pcregrep: installed executable or alias match | Scoop official bucket manifest trees: bucket/pcregrep.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 関連リンク

- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://pkg.so/ja/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [comby](https://pkg.so/ja/brew/comby/) - Popular package that depends on this formula.
- [grok](https://pkg.so/ja/brew/grok/) - Popular package that depends on this formula.
- [nu](https://pkg.so/ja/brew/nu/) - Popular package that depends on this formula.
- [trafficserver](https://pkg.so/ja/brew/trafficserver/) - Popular package that depends on this formula.
- [harbour](https://pkg.so/ja/brew/harbour/) - Popular package that depends on this formula.
- [fourstore](https://pkg.so/ja/brew/fourstore/) - Popular package that depends on this formula.
- [httpflow](https://pkg.so/ja/brew/httpflow/) - Popular package that depends on this formula.
- [vimpc](https://pkg.so/ja/brew/vimpc/) - Popular package that depends on this formula.
- [pcre2](https://pkg.so/ja/brew/pcre2/) - Package name indicates the same formula family.
- [oniguruma](https://pkg.so/ja/brew/oniguruma/) - Shares pkgdb curated category or tags: c-library, cli, developer-tools, libraries, regular-expressions.
- [onigmo](https://pkg.so/ja/brew/onigmo/) - Shares pkgdb curated category or tags: c-library, cli, developer-tools, libraries, regular-expressions.
- [ncurses](https://pkg.so/ja/brew/ncurses/) - Shares pkgdb curated category or tags: c-library, cli, developer-tools, libraries.
- [expat](https://pkg.so/ja/brew/expat/) - Shares pkgdb curated category or tags: c-library, cli, developer-tools, libraries.
- [libevent](https://pkg.so/ja/brew/libevent/) - Shares pkgdb curated category or tags: c-library, cli, developer-tools, libraries.
- [libxml2](https://pkg.so/ja/brew/libxml2/) - Shares pkgdb curated category or tags: c-library, cli, developer-tools, libraries.
- [libxslt](https://pkg.so/ja/brew/libxslt/) - Shares pkgdb curated category or tags: c-library, cli, developer-tools, libraries.

## Combined YAML source

View the package source record on GitHub. [combined/pcre.yml](https://github.com/mxcl/pkgdb/blob/main/combined/pcre.yml)


## ソース

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