Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update ruby in windows

I downloaded ruby trhrough the rails installer but i now want ruby 2.0.0 and already downloaded it. how do i update my ruby because whe i do

ruby -v

it still comes up as ruby version 1.9.3.

like image 869
user2202706 Avatar asked Mar 30 '13 19:03

user2202706


People also ask

How do I update Ruby to latest version of Windows?

Either You can go with new Installer or use "gem"(ruby package manager) to update.

How do I check my Ruby version Windows 10?

Step 1: Check Ruby VersionOpen the command prompt and type ruby -v. If Ruby responds, and if it shows a version number at or above 2.2. 2, then type gem --version. If you don't get an error, skip Install Ruby step.

What is the latest version of Ruby?

What is the latest Ruby version? Ruby 3.1. 0 is the Ruby latest version (3.1. 0 was released Dec 25, 2021).


2 Answers

I recommend using Chocolatey to manage your ruby installation.

It's a unix style package manager for windows.

It's quite easy to install, you can find instructions on their website.

In cmd.exe (run as administrator):

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

Then you can install ruby:

choco install ruby

And upgrade it later:

choco upgrade ruby
like image 160
sokkyoku Avatar answered Oct 23 '22 18:10

sokkyoku


The easiest way for you might be to use RubyInstaller, which its version 2.0.0-p0 is now available for download as installers. Follow the link http://rubyinstaller.org/ for more information.

like image 24
Luís Ramalho Avatar answered Oct 23 '22 19:10

Luís Ramalho