# Install onigmo with Homebrew

Regular expressions library forked from Oniguruma. Version 6.2.0 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:onigmo
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install onigmo
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:onigmo
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/onigmo>
- **Version:** 6.2.0
- **Source summary:** Regular expressions library forked from Oniguruma
- **Homepage:** <https://github.com/k-takata/Onigmo>
- **Repository:** <https://github.com/k-takata/Onigmo>
- **Upstream docs:** <https://github.com/k-takata/Onigmo#readme>
- **License:** BSD-2-Clause
- **Source archive:** <https://github.com/k-takata/Onigmo/releases/download/Onigmo-6.2.0/onigmo-6.2.0.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- onigmo-config (cli)
- onigmo-config (alias)

## 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.2.0
- Local data: ok
- Upstream repository: https://github.com/k-takata/Onigmo
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.
## Project history and usage

Onigmo, short for Oniguruma-mod, is a BSD-licensed regular-expression library forked from Oniguruma. It focuses on adding syntax supported by Perl 5.10 and later, including operators such as \K, \R, and conditional patterns.

### Project history

The upstream README describes Onigmo as a fork of Oniguruma with a focus on newer expression syntax. Its most important branch of influence came through Ruby: the README says Onigmo is the default regexp library of Ruby 2.0 or later and that many patches are backported from Ruby 2.x.

Ruby's own issue discussion for merging Onigmo into Ruby 2.0 framed the change as replacing the Oniguruma base used by Ruby 1.9's regular-expression and M17N infrastructure with k-takata's modified Onigmo.

### Adoption history

Onigmo's adoption is strongest through embedders rather than direct CLI use. Ruby made it part of the language runtime, and Fluent Bit's documentation says its Ruby-mode regular-expression parser uses the Onigmo library.

The Homebrew formula exposes Onigmo as a standalone library package with an onigmo-config helper, giving downstream C and C++ consumers a conventional way to compile and link against it.

### How it is used

Developers embed Onigmo when they want Ruby-compatible or Perl-influenced regular-expression behavior in native code. The upstream build notes cover Unix/Cygwin configure builds, Windows Visual C++ builds, static and dynamic libraries, tests across encodings, and the onigmo-config flags needed by downstream builds.

### Why package nerds care

Onigmo matters because it is both a fork and a runtime substrate: package managers carry it as a library, but many users encounter it indirectly through Ruby-compatible regex behavior. It also illustrates how language runtime needs can pull a general-purpose C library into a specialized fork.

### Timeline

- Ruby 2.0 planning: Ruby issue #5820 targeted merging Onigmo as the replacement for Ruby 1.9's Oniguruma-derived regex engine.
- Ruby 2.0 and later: the Onigmo README identifies it as Ruby's default regexp library in this era.

### Related projects

- Onigmo is directly related to Oniguruma, Ruby's regular-expression engine history, and embedders such as Fluent Bit that expose Ruby-style regular expressions.

### Sources

- <https://docs.fluentbit.io/manual/1.5/pipeline/parsers/regular-expression>
- <https://formulae.brew.sh/formula/onigmo>
- <https://github.com/k-takata/Onigmo>
- <https://www.ruby-forum.com/t/ruby-trunk-feature-5820-assigned-merge-onigmo-to-ruby-2-0/215257>


## 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:** onigmo
- **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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Package publisher tools](https://www.automicvault.com/pkg/package-publishers/) - Belongs to a package publishing or registry 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.
- [groonga](https://www.automicvault.com/pkg/brew/groonga/) - Popular package that depends on this formula.
- [oniguruma](https://www.automicvault.com/pkg/brew/oniguruma/) - 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.

## Combined YAML source

View the package source record on GitHub. [combined/onigmo.yml](https://github.com/automic-vault/db/blob/main/combined/onigmo.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
- cross-ecosystem install command graph
