macOS
brew install onigurumalocal Homebrew formula metadata
brew
Regular expressions library. Version 6.9.10 via Homebrew; verified from local package data.
install
brew install onigurumalocal Homebrew formula metadata
sudo apk add onigurumaAlpine Linux edge package indexes · oniguruma · source: dl-cdn.alpinelinux.org
sudo dnf install onigurumaFedora Rawhide package metadata · oniguruma · source: dl.fedoraproject.org
nix profile install nixpkgs#onigurumanixpkgs package indexes · pkgs/by-name/on/oniguruma/package.nix · source: api.github.com
sudo pacman -S onigurumaArch Linux sync databases · oniguruma · source: geo.mirror.pkgbuild.com
sudo zypper install libonig5openSUSE Tumbleweed package metadata · libonig5 · source: download.opensuse.org
overview
Regular expressions library
history
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.
security posture
library-like package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
onig-config | cli | global executable |
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.
https://github.com/kkos/oniguruma
install metadata
| Package key | brew:oniguruma |
|---|---|
| Version | 6.9.10 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/oniguruma |
| 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 |
| Build dependencies | autoconf, automake, libtool |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
oniguruma
nix profile install nixpkgs#onigurumaoniguruma 6.9.10-r0
a regular expressions library
https://github.com/kkos/oniguruma
sudo apk add onigurumaoniguruma-dev 6.9.10-r0
a regular expressions library (development files)
https://github.com/kkos/oniguruma
sudo apk add oniguruma-devoniguruma 6.9.10-4.fc44
Regular expressions library
https://github.com/kkos/oniguruma/
sudo dnf install onigurumaoniguruma-devel 6.9.10-4.fc44
Development files for oniguruma
https://github.com/kkos/oniguruma/
sudo dnf install oniguruma-develoniguruma 6.9.10-1
a regular expressions library
https://github.com/kkos/oniguruma
sudo pacman -S onigurumalibonig5 6.9.10-2.3
Regex Library Supporting Different Character Encodings
https://github.com/kkos/oniguruma
sudo zypper install libonig5oniguruma-devel 6.9.10-2.3
Regex Library Supporting Different Character Encodings - Development Files
https://github.com/kkos/oniguruma
sudo zypper install oniguruma-develsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.