RVM installs, switches, and isolates Ruby interpreters and gem sets from the shell. It supports MRI and many alternative Ruby implementations.
Overview
Ruby enVironment Manager (RVM) is a command-line tool that installs multiple Ruby interpreters, selects active versions per shell, and manages gem dependencies through named gemsets. It is aimed at developers and servers that need different Ruby versions or isolated gem bundles per project.
Installation scripts are distributed for generic Unix-like systems and dedicated Ubuntu packages. Upgrades run through rvm get with stable, master, or branch targets. Core commands include rvm install, rvm use, default and system rubies, and .ruby-version files for per-directory auto-switching.
Supported interpreters listed in docs include MRI ruby, JRuby, Rubinius, mruby, TruffleRuby, and several historical or specialty runtimes. Gemset features share a download cache, encourage non-root installs, and let each deployment carry only required gems.
Documentation on the project site covers integration with Capistrano, Passenger, CI, editors, and deployment workflows where matching Ruby and gems across environments matters.
Key features
- Multiple Ruby interpreter installs
- Per-shell version switching
- Named gemsets
- Project .ruby-version files
- Default and system Ruby targets
- Shared gem download cache
- Non-root user installs
- Ubuntu package option
Use cases
- Per-project Ruby version pinning
- Testing across MRI and JRuby
- Isolated gem sets on servers
- Upgrading Ruby without system packages
- CI matrices with several Rubies