Ruby 3.1 with MSYS2 3.1.7-1

A Ruby language execution environment with a MSYS2 installation.

Download for Windows

About Ruby 3.1 with MSYS2

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, integrated with a MSYS2 installation.

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.RubyWithDevKit.3.1
Install scopeCurrent user

Install Ruby 3.1 with MSYS2 from the command line

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

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

languageprogrammingprogramming-languagerubyruby-with-devkit

Ruby 3.1 with MSYS2 version history

3.1.2-1 Apr 19, 2022
3.1.1-1
3.1.0-1

Frequently asked questions

Is Ruby 3.1 with MSYS2 free?

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

What is the latest version of Ruby 3.1 with MSYS2?

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

Is it safe to download Ruby 3.1 with MSYS2?

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 c643bf00680aa21f20b34587aa0613e9970d9b63adaef2c0228925a7f9cdfc7a.

Which Windows versions does Ruby 3.1 with MSYS2 support?

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

How do I install Ruby 3.1 with MSYS2 silently?

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

How do I uninstall Ruby 3.1 with MSYS2?

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