Upgrading to Ruby 2.1.0 using rvm

Karthik A K

29 sec read

Yaay Ruby 2.10 has been released and here is how to upgrade it using rvm
First update rvm lists, so that rvm knows that ruby 2.1.0 is been released using the following command
[sourcecode lang=”bash”]
$ rvm get stable
[/sourcecode]
Once its done, install ruby 2.1.0 in your computer by typing this stuff in your console
[sourcecode lang=”bash”]
$ rvm install 2.1.0
[/sourcecode]
Once all that downloading, compiling and installing stuff is done (done by good rvm). You have got Ruby 2.1.0!
Now if you want this latest Ruby to be your default one (which I recommend) , just punch in these lines
[sourcecode lang=”bash”]
$ rvm –default use 2.1.0
[/sourcecode]
and yaay thats it, type ruby -v and if you get some output like ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux] you have got it. Ruby is now 2.1.0 on your computer. Start jumping!

Related posts:

One Reply to “Upgrading to Ruby 2.1.0 using rvm”

Leave a Reply

Your email address will not be published. Required fields are marked *