Skip to content
Search

Ruby Version Manager

lastmod 2018-08-20created 2015-02-0811 edits

WARNING

It is better to use rbenv whenever possible.

Ruby Version Manager, often abbreviated as RVM, is a unix-like software platform designed to manage multiple installations of Ruby on the same device.

How to install

Before any other step install mpapis public key (might need gpg2)

$ gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

Install RVM.

## Install RVM (development version):
$ \curl -L https://get.rvm.io | bash

## OR Install RVM stable with ruby:
$ \curl -sSL https://get.rvm.io | bash -s stable --ruby

## OR Select a specific version.
$ \curl -sSL https://get.rvm.io | bash -s stable --ruby=2.0.0

Note that \curl above means to use the original command in Bash, not an alias.

Then, to use rvm, log out or run the following.

$ source ~/.rvm/scripts/rvm
## OR
$ source /usr/local/rvm/scripts/rvm

After that, you can install Ruby with RVM.

$ rvm install 2.0.0

How to use

  • rvm list: prints the list of installed Rubies.

See also

Favorite site

References


  1. Install_the_RVM_and_Ruby.pdf ↩

author Zer0 sitemap