Skip to content

Instantly share code, notes, and snippets.

@rafaelune
Last active August 29, 2015 14:00
Show Gist options
  • Save rafaelune/0a497ade9831ffcd1f9d to your computer and use it in GitHub Desktop.
Save rafaelune/0a497ade9831ffcd1f9d to your computer and use it in GitHub Desktop.

RVM Basic Commands

Installing ruby

  $ rvm install 1.9.2
  $ rvm use 1.9.2
  $ ruby -v

To list all installed versions of ruby

  $ rvm list rubies

To list all know ruby versions

  $ rvm list known

To switch versions

  $ rvm use 1.9.2

Creating a named gemset to test a different version of rails

  $ rvm gemset create rails222
  $ rvm 1.9.2-head@rails222
  $ gem install rails -v 2.2.2
  $ rvm 1.9.2-head@rails222 ; rails --version

  Rails 2.2.2

To list all interpreters gemsets

  $ rvm gemset list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment