Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 :)

share|improve this question
up vote 48 down vote accepted

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.

share|improve this answer
    
My pleasure...it's works for you !! – Gaurav Sharma Aug 9 '13 at 6:19

The following command will install latest stable version of ruby:

rvm install ruby --latest
share|improve this answer
    
This does not always install latest. I was on 2.1.5 and using --latest I got 2.2.1 and then using rvm install 2.2.4 I got 2.2.4 which is newest than what I got using --latest – SET Dec 25 '15 at 21:27
    
If you want to use the latest version of Ruby that is already installed you can use rvm use ruby --latest – Elliot Chance Feb 9 at 23:44

rvm get stable

Also, rvm -v shows me that my version is the latest; I presume it's going out to the Internet to verify that:

rvm 1.27.0 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.