Ruby 3.1

Ruby 3.1 3.1.7-1

The Ruby language execution environment

Download for Windows

About Ruby 3.1

The RubyInstaller project provides a self-contained Windows-based installer that includes a Ruby-language execution environment and a baseline set of required RubyGems and extensions.

What's new in 3.1.7-1

Changed
- Update to ruby-3.1.7, see release notes.
- Apply all security patches that Canonical provides for Ubuntu-20.04 because version 1.1.1 is out of maintanence from the OpenSSL project:
- CVE-2024-2511
- CVE-2024-4741
- CVE-2024-5535
- CVE-2024-9143
- CVE-2024-13176
- Fix automatic pacman package install when using bundler-2.5.x. #396
- Fix pacman install error in parallel bundler install -jX. #403
pacman invocation is now serialized to avoid locking errors.
- Update MSYS2 download version to 2024-12-08 for ridk install 1. #402
- Add junction (directory link) at <ruby>/ssl, which allows to easily find the OpenSSL certificates directory. #399
The certificates directory varies between ruby versions and the junction unifies the location.
It is described in <ruby>/ssl/README-SSL.md.
- Update the SSL CA certificate list.
- Remove installed gems and MSYS2 by the uninstaller per default. #408
So far the uninstaller only removed the ruby install files, but kept installed gems and MSYS2.
The old behaviour is available when running the uninstaller with option /allfiles=no.
See in the wiki.
This is to prepare RubyInstaller for the Microsoft Store.
- Avoid early load of etc.so allowing updates of etc.gem. #388
- Set a single key in gemrc to allow appending to this file. #388

Full release notes »

Technical details

PublisherRubyInstaller Team
Version3.1.7-1
Release date2025-03-26
LicenseBSD-3-Clause
Installer typeinno
Architecturex86, x64
Package IDRubyInstallerTeam.Ruby.3.1
Install scopeCurrent user

Install Ruby 3.1 from the command line

Install with Windows Package Manager
winget install --id=RubyInstallerTeam.Ruby.3.1 -e
Update to the latest version
winget upgrade --id=RubyInstallerTeam.Ruby.3.1 -e
Uninstall
winget uninstall --id=RubyInstallerTeam.Ruby.3.1 -e
Silent install with the offline installer
"rubyinstaller-3.1.7-1-x64.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /CURRENTUSER

Ruby 3.1 adds these commands to the command line: ruby, rubyw.

languageprogrammingprogramming-languageruby

Ruby 3.1 version history

3.1.2-1
3.1.1-1
3.1.0-1

Frequently asked questions

Is Ruby 3.1 free?

Yes. Ruby 3.1 is free and open-source software released under the BSD-3-Clause license.

What is the latest version of Ruby 3.1?

The latest version is 3.1.7-1, released on Mar 26, 2025.

Is it safe to download Ruby 3.1?

The download button links to the official installer published on github.com, the same file Windows Package Manager installs. You can verify the downloaded file by comparing its SHA-256 checksum with 07c9ed14d5ba45d68c37232b4356311756057580bd376219f0e2dbff54f14b38.

Which Windows versions does Ruby 3.1 support?

Ruby 3.1 runs on Windows and is available for 32-bit (x86), 64-bit (x64) systems.

How do I install Ruby 3.1 silently?

Run the offline installer with "rubyinstaller-3.1.7-1-x64.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /CURRENTUSER, or install it with Windows Package Manager: winget install --id=RubyInstallerTeam.Ruby.3.1 -e --silent.

How do I uninstall Ruby 3.1?

Open Settings › Apps › Installed apps, find Ruby 3.1 and select Uninstall. From the command line, run winget uninstall --id=RubyInstallerTeam.Ruby.3.1 -e.