ruby
brew install rubyAlso known as: ruby@4, ruby@4.0
Powerful, clean, object-oriented scripting language
License: Ruby
Development: Pull requests
Formula JSON API: /api/formula/ruby.json
Formula code: ruby.rb on GitHub
Bottle (binary package) installation support provided for:
| macOS on Apple Silicon |
golden gate | ✅ |
|---|---|---|
| tahoe | ✅ | |
| sequoia | ✅ | |
| Linux | ARM64 | ✅ |
| x86_64 | ✅ |
Current versions:
| stable | ✅ | 4.0.10 |
| head | ⚡️ | HEAD |
Other versions:
| ruby@3.4 | 3.4.13 | Powerful, clean, object-oriented scripting language |
| ruby@3.3 | 3.3.14 | Powerful, clean, object-oriented scripting language |
| ruby@3.2 | 3.2.11 | Powerful, clean, object-oriented scripting language |
| ruby@3.1 | 3.1.7 | Powerful, clean, object-oriented scripting language |
Depends on:
| libyaml | 0.2.7 | YAML Parser |
| openssl@4 | 4.1.1 | Cryptography and SSL/TLS Toolkit |
Depends on when building from source:
| pkgconf | 3.0.11 | Package compiler and linker metadata toolkit |
| rust | 1.100.1 | Safe, concurrent, practical language |
Uses from macOS: libffi, libxcrypt
Binaries:
bundle,
bundler,
erb,
gem,
irb,
minitest,
racc,
rake,
rbs,
rdbg,
rdoc,
ri,
ruby,
syntax_suggest,
test-unit,
typeprof
| By default, binaries installed by gem will be placed into: $HOMEBREW_PREFIX/lib/ruby/gems/4.0.0/bin You may want to add this to your PATH. |
GitHub Packages downloads:
| Last 30 days | 398,774 |
|---|---|
| Downloads | 25,784,776 |
| Analytics install events (30 days) | 47,602 |
| Downloads / install events (30 days) | 8.4× |
Source: GitHub Packages, fetched 2026-12-02T00:58:52Z. Analytics dates: 2026-11-02 to 2026-12-02. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.
Analytics:
| 30 days | 90 days | 365 days | |
|---|---|---|---|
| Installs | 47,568 | 128,598 | 658,773 |
Installs (--HEAD) | 34 | 92 | 427 |
| Installs on Request | 18,561 | 55,248 | 266,171 |
Installs on Request (--HEAD) | 29 | 86 | 401 |
| Build Errors | 40 |