79

I finally got RVM working and now I would like RVM to install the latest stable ruby version.

In the tutorial I am using they installed ruby 1.9.3 with command :

rvm install 1.9.3

Now I want to know if there is a command to download the latest stable version, or do I have to check latest stable version and download it like that, or else, can I download any old version and run an upgrade?

Normally I would try out everything, but I am working on a new server and I am trying to set it up as clean as I can :)

Private
  • 4,074

4 Answers4

105

The following command will install latest stable version of ruby:

rvm install ruby --latest
Eliah Kagan
  • 119,640
user311140
  • 1,051
80

you can install latest rvm and ruby by :

$ \curl -L https://get.rvm.io | bash -s stable --ruby

and check all the ruby version with stability

$ rvm list known

can also check details here : http://www.ruby-lang.org/en/downloads/

$ rvm install ruby 2.0.0-p247 

Use when you want to download specific version or know this is stable.

0
echo rvm_autoupdate_flag=2 >> ~/.rvmrc
rvm install ruby --latest
Bruno
  • 173
0

This command will help you to install latest stable version of Ruby using RVM.

rvm get stable

To install the latest stable Ruby version you need to run:

rvm install ruby --latest

This command will install the latest stable version of Ruby after updating RVM.

karel
  • 122,292
  • 133
  • 301
  • 332