# oniguruma を Homebrew, apk, dnf, Nix, pacman, zypper でインストール

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

## インストール

```sh
sudo av install brew:oniguruma
```

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

### macOS

- Homebrew (100%):

```sh
brew install oniguruma
```

  証拠: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add oniguruma
```

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

- dnf (92%):

```sh
sudo dnf install oniguruma
```

  証拠: Fedora Rawhide package metadata: oniguruma from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#oniguruma
```

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

- pacman (92%):

```sh
sudo pacman -S oniguruma
```

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

- zypper (92%):

```sh
sudo zypper install libonig5
```

  証拠: openSUSE Tumbleweed package metadata: libonig5 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:oniguruma
- **パッケージマネージャ:** Homebrew
- **バージョン:** 6.9.10
- **ソース概要:** Regular expressions library
- **ホームページ:** <https://github.com/kkos/oniguruma/>
- **リポジトリ:** <https://github.com/kkos/oniguruma>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- onig-config (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 6.9.10
## プロジェクトの歴史と使われ方

Oniguruma is a BSD-licensed C regular-expression engine known for rich syntax and unusually broad character-encoding support. It became infrastructure for language runtimes, multibyte text processing, and editor syntax-highlighting systems.

### プロジェクトの歴史

The upstream README describes Oniguruma as a modern and flexible regular-expression library that combines features traditionally found in different regex implementations. A key design point is that character encoding can be specified per regular-expression object, with supported encodings ranging from ASCII and UTF families to EUC variants, Shift_JIS, Big5, GB18030, KOI8-R, CP1251, and ISO-8859 variants.

The project continued through 6.x releases with Unicode and API work: 6.9.6 added compatibility and safety-related options, 6.9.7 added callback and Python syntax APIs, 6.9.8 updated to Unicode 14.0.0 and fixed OSS-Fuzz findings, 6.9.9 updated to Unicode 15.1.0, and 6.9.10 updated to Unicode 16.0 and added the (*SKIP) operator. The README states that the project ended on April 24, 2025.

### 採用の歴史

Oniguruma's adoption came from being useful where byte-oriented regex engines were not enough. PHP's mbstring installation manual says Oniguruma is necessary for multibyte regular-expression functions and that PHP 7.4.0 switched to pkg-config detection of the external libonig library after earlier bundled use.

The editor ecosystem also standardized on Oniguruma syntax. Microsoft's vscode-textmate README says TextMate grammars use the Oniguruma dialect and that the library is used in VS Code; the VS Code extension API guide likewise says TextMate grammars rely on Oniguruma regular expressions.

### 使われ方

C developers include oniguruma.h, link with libonig, and choose among the native Oniguruma API plus GNU and POSIX-compatible APIs. The upstream README includes sample programs for callouts, encodings, named groups, POSIX usage, scanning, syntax tests, and user-defined Unicode properties.

Downstream users often never call libonig directly. PHP developers touch it through mb_ereg and related mbstring regex functions, while editor-extension authors touch its syntax through TextMate grammar patterns consumed by VS Code and compatible tooling.

### パッケージ好きにとっての重要性

Oniguruma is a classic package-graph library: small from a user-interface perspective, but large in dependency impact. It sits under PHP multibyte regex, TextMate grammar tokenization, VS Code-related tooling, and multiple language or editor stacks, so packaging updates can ripple into builds, syntax highlighting, and security maintenance.

### タイムライン

- PHP 7.4.0: PHP's mbstring build switched to pkg-config detection for libonig, while the manual notes prior bundled use.
- 2020-2022: 6.9.6 through 6.9.8 added API work, Unicode 14.0.0 support, and fixes from OSS-Fuzz and Coverity.
- 2024-2025: 6.9.9 and 6.9.10 updated Unicode support to 15.1.0 and 16.0.
- April 24, 2025: the upstream README states that the Oniguruma project ended.

### Related projects

- Oniguruma is the upstream ancestor of Onigmo. It is also tied to PHP mbstring, TextMate grammars, VS Code's TextMate tokenizer stack, and package names such as libonig on Linux distributions.

### ソース

- <https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide>
- <https://formulae.brew.sh/formula/oniguruma>
- <https://github.com/kkos/oniguruma>
- <https://github.com/microsoft/vscode-textmate>
- <https://www.php.net/manual/en/mbstring.installation.php>


## セキュリティノート

library-like package without higher-risk signals.

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

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

- Nix - oniguruma: normalized package name match | nixpkgs package indexes: pkgs/by-name/on/oniguruma/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - oniguruma - 6.9.10-r0: normalized package name match | Alpine Linux edge package indexes: oniguruma from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | a regular expressions library | https://github.com/kkos/oniguruma
- apk - oniguruma-dev - 6.9.10-r0: normalized package name match | Alpine Linux edge package indexes: oniguruma-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | a regular expressions library (development files) | https://github.com/kkos/oniguruma
- dnf - oniguruma - 6.9.10-5.fc45: normalized package name match | Fedora Rawhide package metadata: oniguruma from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Regular expressions library | https://github.com/kkos/oniguruma/
- dnf - oniguruma-devel - 6.9.10-5.fc45: normalized package name match | Fedora Rawhide package metadata: oniguruma-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for oniguruma | https://github.com/kkos/oniguruma/
- pacman - oniguruma - 6.9.10-1: normalized package name match | Arch Linux sync databases: oniguruma from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | a regular expressions library | https://github.com/kkos/oniguruma
- zypper - libonig5 - 6.9.10-2.5: normalized package name match | openSUSE Tumbleweed package metadata: libonig5 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Regex Library Supporting Different Character Encodings | https://github.com/kkos/oniguruma
- zypper - oniguruma-devel - 6.9.10-2.5: normalized package name match | openSUSE Tumbleweed package metadata: oniguruma-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Regex Library Supporting Different Character Encodings - Development Files | https://github.com/kkos/oniguruma


## Combined YAML source

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


## ソース

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