# Install mruby with Homebrew, apk, apt, MacPorts, Nix, pacman, zypper

Lightweight implementation of the Ruby language. Version 4.0.0 via Homebrew; verified 2026-04-20.

## Install

```sh
sudo av install brew:mruby
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mruby
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mruby
```

  Evidence: MacPorts ports tree: lang/mruby/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add mruby
```

  Evidence: Alpine Linux edge package indexes: mruby from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install libmruby-dev
```

  Evidence: Debian stable package indexes: libmruby-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#mruby
```

  Evidence: nixpkgs package indexes: pkgs/by-name/mr/mruby/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S mruby
```

  Evidence: Arch Linux sync databases: mruby from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install libmruby3_4_0
```

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

## Package facts

- **Package key:** brew:mruby
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/mruby>
- **Version:** 4.0.0
- **Source summary:** Lightweight implementation of the Ruby language
- **Homepage:** <https://mruby.org/>
- **Repository:** <https://github.com/mruby/mruby>
- **Upstream docs:** <https://mruby.org/docs>
- **License:** MIT
- **Source archive:** <https://github.com/mruby/mruby/archive/refs/tags/4.0.0.tar.gz>
- **Last updated:** 2026-04-20T10:02:18Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- mirb (cli)
- mrbc (cli)
- mruby (cli)
- mruby-config (cli)
- mruby-strip (cli)
- mirb (alias)
- mrbc (alias)
- mruby (alias)
- mruby-config (alias)
- mruby-strip (alias)

## Build dependencies

- bison

## Install behavior

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

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 4.0.0
- Package-manager updated: 2026-04-20
- Local data: ok
- Upstream repository: https://github.com/mruby/mruby
- Upstream latest detected: 4.0.0 (current)
## Project history and usage

mruby is a lightweight, embeddable implementation of Ruby associated with Ruby creator Yukihiro Matsumoto and the mruby contributors. The official site describes it as complying with part of the ISO/IEC 30170 Ruby specification and designed to be linked into applications where MRI Ruby is too heavy. The project also acknowledges sponsorship by Japan's Ministry of Economy, Trade and Industry Regional Innovation Creation R&D Programs.

### Project history

The toolchain is deliberately small and embeddable. It provides the mruby interpreter, the mirb interactive shell, and mrbc, a compiler that emits mruby bytecode and can generate bytecode as a C source file. The GitHub README describes linking mruby into C or C++ applications, using the bin tools as examples, and customizing builds with mrbgems.

### How it is used

mruby's ecosystem role differs from the main Ruby implementation. It targets constrained environments, native applications, firmware-like embeddings, and products that want Ruby syntax without shipping a full MRI runtime. The release history on the official site records 1.0.0 in February 2014 and later 2.x, 3.x, and 4.x lines, reflecting a long-running compatibility and maintenance effort. Package managers expose the command-line tools and development library for developers embedding Ruby behavior or compiling scripts into bytecode.

### Sources

- <https://formulae.brew.sh/formula/mruby>
- <https://github.com/mruby/mruby>
- <https://mruby.org/>
- <https://mruby.org/about/>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mruby
- **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

- Debian apt - libmruby-dev - 3.3.0-1: normalized package name match | Debian stable package indexes: libmruby-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | lightweight implementation of the Ruby language (development files) | https://mruby.org/
- Debian apt - mruby - 3.3.0-1: normalized package name match | Debian stable package indexes: mruby from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | lightweight implementation of the Ruby language | https://mruby.org/
- Nix - mruby: normalized package name match | nixpkgs package indexes: pkgs/by-name/mr/mruby/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libmruby-dev - 3.2.0-2: normalized package name match | Ubuntu 24.04 LTS package indexes: libmruby-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | lightweight implementation of the Ruby language (development files) | https://mruby.org/
- Ubuntu apt - mruby - 3.2.0-2: normalized package name match | Ubuntu 24.04 LTS package indexes: mruby from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | lightweight implementation of the Ruby language | https://mruby.org/
- apk - mruby - 3.3.0-r0: normalized package name match | Alpine Linux edge package indexes: mruby from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Lightweight Ruby | https://mruby.org
- apk - mruby-dev - 3.3.0-r0: normalized package name match | Alpine Linux edge package indexes: mruby-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Lightweight Ruby (development files) | https://mruby.org
- apk - mruby-tools - 3.3.0-r0: normalized package name match | Alpine Linux edge package indexes: mruby-tools from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Lightweight Ruby (tools) | https://mruby.org
- pacman - mruby - 3.3.0-2: normalized package name match | Arch Linux sync databases: mruby from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | An interpreter for the Ruby programming language with the intention of being lightweight and easily embeddable | https://github.com/mruby/mruby
- zypper - libmruby3_4_0 - 3.4.0-1.4: normalized package name match | openSUSE Tumbleweed package metadata: libmruby3_4_0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Lightweight Ruby Embedded Environment | https://github.com/mruby/mruby/
- zypper - libmruby_core3_4_0 - 3.4.0-1.4: normalized package name match | openSUSE Tumbleweed package metadata: libmruby_core3_4_0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Lightweight Ruby Embedded Environment | https://github.com/mruby/mruby/
- zypper - mruby - 3.4.0-1.4: normalized package name match | openSUSE Tumbleweed package metadata: mruby from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Lightweight Ruby | https://github.com/mruby/mruby/
- zypper - mruby-devel - 3.4.0-1.4: normalized package name match | openSUSE Tumbleweed package metadata: mruby-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Lightweight Ruby Embedded Environment | https://github.com/mruby/mruby/
- MacPorts - mruby: normalized package name match | MacPorts ports tree: lang/mruby/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [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.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [bison](https://www.automicvault.com/pkg/brew/bison/) - Build dependency declared by Homebrew.
- [qsoas](https://www.automicvault.com/pkg/brew/qsoas/) - Popular package that depends on this formula.
- [jruby](https://www.automicvault.com/pkg/brew/jruby/) - Shares av.db curated category or tags: cli, language-runtime, ruby.
- [picoruby](https://www.automicvault.com/pkg/brew/picoruby/) - Shares av.db curated category or tags: cli, embedded, language-runtime, ruby.
- [opal](https://www.automicvault.com/pkg/brew/opal/) - Shares av.db curated category or tags: cli, language-runtime, ruby.
- [picoc](https://www.automicvault.com/pkg/brew/picoc/) - Shares av.db curated category or tags: cli, embedded, interpreter, language-runtime, lightweight.
- [rbenv-aliases](https://www.automicvault.com/pkg/brew/rbenv-aliases/) - Shares av.db curated category or tags: cli, language-runtime, ruby.
- [ruby-build](https://www.automicvault.com/pkg/brew/ruby-build/) - Shares av.db curated category or tags: cli, language-runtime, ruby.
- [ruby-install](https://www.automicvault.com/pkg/brew/ruby-install/) - Shares av.db curated category or tags: cli, language-runtime, ruby.
- [abcl](https://www.automicvault.com/pkg/brew/abcl/) - Shares av.db curated category or tags: cli, interpreter, language-runtime.
- [jimtcl](https://www.automicvault.com/pkg/brew/jimtcl/) - Local package facts share a topical domain. Shared terms: cli, embedded, implementation, interpreter, language.

## Combined YAML source

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