macOS
brew install chrubylocal Homebrew formula metadata
sudo port install chrubyMacPorts ports tree · ruby/chruby/Portfile · source: api.github.com
brew
Ruby environment tool. Version 0.3.9 via Homebrew; verified from local package data.
install
brew install chrubylocal Homebrew formula metadata
sudo port install chrubyMacPorts ports tree · ruby/chruby/Portfile · source: api.github.com
nix profile install nixpkgs#chrubynixpkgs package indexes · chruby · source: raw.githubusercontent.com
overview
Ruby environment tool
history
chruby is a minimal shell-based Ruby version switcher that changes the active Ruby by updating shell environment variables instead of using shims.
The GitHub repository was created in August 2012 and early tags begin with v0.0.1 on the same date. The README highlights a deliberately small design: update PATH and RubyGems environment variables, support bash and zsh, default to system Ruby, and keep the implementation around 100 lines.
chruby's README frames its design through anti-features: it does not hook cd by default, does not install executable shims, does not regenerate shims after gem installation, and does not require Rubies to live in the user's home directory.
The official README documents Homebrew installation, source installation, Arch AUR, Fedora Copr, FreeBSD ports, and pairing with ruby-install or ruby-build. The supplied package facts also show Homebrew, MacPorts, and Nix packaging.
Users source chruby.sh from shell startup files and optionally source auto.sh to switch versions by reading .ruby-version files in the current or parent directories. Non-standard Ruby install directories can be appended to the RUBIES shell array.
chruby matters because it is the small-tool answer to heavier Ruby version managers. It plays well with package managers because it separates installing Ruby builds from selecting one in the shell, which keeps version switching inspectable and avoids shim directories.
security posture
narrow executable 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.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.bashrc~/.zshrc/etc/bashrc/etc/profile.d/chruby.sh~/.bash_profile~/.zprofile.ruby-version~/.ruby-versionexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
chruby-exec | 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/postmodern/chruby
install metadata
| Package key | brew:chruby |
|---|---|
| Version | 0.3.9 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/chruby |
| Homepage | https://github.com/postmodern/chruby |
| Repository | https://github.com/postmodern/chruby |
| Upstream docs | https://github.com/postmodern/chruby#readme |
| License | MIT |
| Source archive | https://github.com/postmodern/chruby/releases/download/v0.3.9/chruby-0.3.9.tar.gz |
| Bottle | available (on all) |
| Homebrew post-install | not defined |
| Service | none declared |
| Caveats | Add the following to the ~/.bash_profile or ~/.zshrc file: source $HOMEBREW_PREFIX/opt/chruby/share/chruby/chruby.sh To enable auto-switching of Rubies specified by .ruby-version files, add the following to ~/.bash_profile or ~/.zshrc: source $HOMEBREW_PREFIX/opt/chruby/share/chruby/auto.sh |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | chruby |
| 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.
chruby
nix profile install nixpkgs#chrubychruby
sudo port install chrubysource 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.