# Install oniguruma with Homebrew, apk, dnf, Nix, pacman, zypper

Regular expressions library. Version 6.9.10 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install oniguruma
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add oniguruma
```

  Evidence: 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
```

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

- Nix (92%):

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

  Evidence: 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
```

  Evidence: 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
```

  Evidence: openSUSE Tumbleweed package metadata: libonig5 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:oniguruma
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/oniguruma>
- **Version:** 6.9.10
- **Source summary:** Regular expressions library
- **Homepage:** <https://github.com/kkos/oniguruma/>
- **Repository:** <https://github.com/kkos/oniguruma>
- **Upstream docs:** <https://github.com/kkos/oniguruma#readme>
- **License:** BSD-2-Clause
- **Source archive:** <https://github.com/kkos/oniguruma/releases/download/v6.9.10/onig-6.9.10.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- onig-config (cli)
- onig-config (alias)

## Build dependencies

- autoconf
- automake
- libtool

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 6.9.10
- Local data: ok
- Upstream repository: https://github.com/kkos/oniguruma
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

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

## Other Package-Manager Records

- 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-4.fc44: normalized package name match | Fedora Rawhide package metadata: oniguruma from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Regular expressions library | https://github.com/kkos/oniguruma/
- dnf - oniguruma-devel - 6.9.10-4.fc44: 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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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.3: normalized package name match | openSUSE Tumbleweed package metadata: libonig5 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Regex Library Supporting Different Character Encodings | https://github.com/kkos/oniguruma
- zypper - oniguruma-devel - 6.9.10-2.3: normalized package name match | openSUSE Tumbleweed package metadata: oniguruma-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Regex Library Supporting Different Character Encodings - Development Files | https://github.com/kkos/oniguruma


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [autoconf](https://www.automicvault.com/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [libtool](https://www.automicvault.com/pkg/brew/libtool/) - Build dependency declared by Homebrew.
- [atac](https://www.automicvault.com/pkg/brew/atac/) - Popular package that depends on this formula.
- [bat](https://www.automicvault.com/pkg/brew/bat/) - Popular package that depends on this formula.
- [bfs](https://www.automicvault.com/pkg/brew/bfs/) - Popular package that depends on this formula.
- [codevis](https://www.automicvault.com/pkg/brew/codevis/) - Popular package that depends on this formula.
- [git-delta](https://www.automicvault.com/pkg/brew/git-delta/) - Popular package that depends on this formula.
- [jq](https://www.automicvault.com/pkg/brew/jq/) - Popular package that depends on this formula.
- [oranda](https://www.automicvault.com/pkg/brew/oranda/) - Popular package that depends on this formula.
- [php](https://www.automicvault.com/pkg/brew/php/) - Popular package that depends on this formula.
- [onigmo](https://www.automicvault.com/pkg/brew/onigmo/) - Shares av.db curated category or tags: c-library, cli, developer-tools, libraries, regular-expressions.
- [rgxg](https://www.automicvault.com/pkg/brew/rgxg/) - Shares av.db curated category or tags: c-library, cli, developer-tools, regular-expressions, text-processing.
- [grok](https://www.automicvault.com/pkg/brew/grok/) - Shares av.db curated category or tags: cli, developer-tools, regular-expressions, text-processing.
- [pcre](https://www.automicvault.com/pkg/brew/pcre/) - Shares av.db curated category or tags: c-library, cli, developer-tools, libraries, regular-expressions.
- [pcre2](https://www.automicvault.com/pkg/brew/pcre2/) - Shares av.db curated category or tags: c-library, cli, developer-tools, libraries, regular-expressions.
- [cdk](https://www.automicvault.com/pkg/brew/cdk/) - Shares av.db curated category or tags: c-library, cli, developer-tools, libraries.
- [expat](https://www.automicvault.com/pkg/brew/expat/) - Shares av.db curated category or tags: c-library, cli, developer-tools, libraries.
- [fstrm](https://www.automicvault.com/pkg/brew/fstrm/) - Shares av.db curated category or tags: c-library, cli, developer-tools, libraries.
- [bsdconv](https://www.automicvault.com/pkg/brew/bsdconv/) - Local package facts share a topical domain. Shared terms: character, character-encoding, cli, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/oniguruma.yml](https://github.com/automic-vault/db/blob/main/combined/oniguruma.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
