Skip to content

Instantly share code, notes, and snippets.

@thapakazi
Created February 13, 2014 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thapakazi/8972157 to your computer and use it in GitHub Desktop.
Save thapakazi/8972157 to your computer and use it in GitHub Desktop.
Update ruby version using rvm
#!/bin/bash
#source::
# http://stackoverflow.com/a/4574388/2636474
#First of all, update your RVM installation by running
rvm get stable
#then to make sure you're running the new RVM version, you'll then need to run
rvm reload #(or just open a new terminal).
#Once that's done, you can ask RVM to list the ruby versions available to install by running
rvm list known.
#In the output you should now see:
# MRI Rubies
#...
#[ruby-]1.9.2[-p320]
#...
#The square brackets around the patch level indicate that this is currently RVM's default patch level for ruby 1.9.2.
#Finally, to install the new ruby version, just run rvm install 1.9.2 - and wait for it to compile!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment