delete
delete

Reputation:

How to update my version of Ruby from terminal?

I ran the command 'ruby -v' on my Linux Mint 10 virtual machine and got:

stapiagutierrez@Sergio-Linux-VM ~/Desktop/Tickets/tickets $ ruby -v
ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux]

How can I upgrade it to the latest version, 1.9.2?

Upvotes: 19

Views: 38120

Answers (1)

Pan Thomakos
Pan Thomakos

Reputation: 34350

I would suggest using RVM. That way you can keep the 1.8.7 version of Ruby, but you can also install new ones easily:

rvm install 1.9.2

And switch between them with no effort:

rvm 1.8.7
rvm 1.9.2

Using rvm you can set your default version of Ruby like this:

rvm --default use 1.9.2

Upvotes: 33

Related Questions