Ruby 4.0

Ruby 4.0 4.0.9-1

The Ruby language execution environment

Download for Windows

About Ruby 4.0

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 4.0.9-1

Changed

  • Update to ruby-4.0.9, see release notes.

Full release notes »

Technical details

PublisherRubyInstaller Team
Version4.0.9-1
Release date2026-10-23
LicenseBSD-3-Clause
Installer typeinno
Architecturex64, arm64
Package IDRubyInstallerTeam.Ruby.4.0
Install scopeCurrent user

Install Ruby 4.0 from the command line

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

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

languageprogrammingprogramming-languageruby

Ruby 4.0 version history

4.0.7-2 Oct 21, 2026

Changed
- Remove eMudhra's "emSign ECC Root CA - G3" from the SSL CA certificate list. #491
8 of their intermediate certificates were compromized.
- Change installer name and version strings to match the expectation of the Microsoft Store.

4.0.7-1 Sep 15, 2026

Changed

  • Update to ruby-4.0.7, see release notes.
  • Update the SSL CA certificate list.
4.0.6-1 Jul 14, 2026

Changed

  • Update to ruby-4.0.6, see release notes.
  • Update the SSL CA certificate list.

Other versions

  • 4.0.5-1
  • 4.0.4-1
  • 4.0.3-1
  • 4.0.2-1
  • 4.0.1-1

Frequently asked questions

Is Ruby 4.0 free?

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

What is the latest version of Ruby 4.0?

The latest version is 4.0.9-1, released on Oct 23, 2026.

Is it safe to download Ruby 4.0?

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

Which Windows versions does Ruby 4.0 support?

Ruby 4.0 runs on Windows and is available for 64-bit (x64), ARM64 systems.

How do I install Ruby 4.0 silently?

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

How do I uninstall Ruby 4.0?

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