Ruby Version Manager: install several Ruby interpreters side by side and switch between them, each with its own named gemsets.
open sourceApache-2.0self-hostablefree
RVM (Ruby Version Manager) is a command-line tool for installing, managing and switching between multiple Ruby environments, from the interpreter down to the exact set of gems. Its named gemsets give each project, environment or branch a self-contained set of gems, so gem versions don't conflict between applications and an upgrade can be tested on a clean set while the original stays intact. A small file in a project's repository selects its Ruby and gemset, which keeps development, CI, staging and production identical, and RVM can run a test suite, rake tasks or gem commands against several Ruby versions at once. It installs with a one-line script (optionally with Ruby and Rails), can be installed for a single user or system-wide, and its autolibs feature detects and installs the libraries a Ruby build needs. New Ruby releases are added as they come out. RVM is Apache-2.0 licensed and maintained by a community of volunteers.
Problems it solves
- switch between Ruby versions for different projects
- gem version conflicts between my Ruby apps
- install a newer Ruby than the one my OS ships
- run my test suite against several Ruby versions
- pin a Ruby version and gem set per project
Features
- install and switch between multiple Ruby interpreters
- named gemsets per project, environment or branch
- per-project Ruby and gemset files
- run commands against several Ruby versions at once
- one-line installer with optional Ruby and Rails
- single-user or multi-user install
- autolibs installs build dependencies
Limitations
- On Windows it runs only under Cygwin or Bash on Ubuntu on Windows (WSL).1
Alternatives
The same job
These do what RVM does.
- ruby-build Download, compile, and install Ruby on Unix-like systems
- Fullstaq Ruby A server-optimised Ruby distribution: precompiled MRI packages built with jemalloc and malloc_trim.
- asdf Manage multiple runtime versions with a single CLI tool, extendable via plugins
- pyenv Simple Python version management