Here you can get the latest Ruby distributions in your favorite flavor.
The current stable version is 4.0.6.
Please be sure to read [Ruby’s License][license].
{: .summary}

### Ways of Installing Ruby

We have several tools on each major platform to install Ruby:

* On Linux/UNIX, you can use the package management system of your
  distribution or third-party tools ([rbenv][rbenv] and [RVM][rvm]).
* On macOS machines, you can use third-party tools ([rbenv][rbenv] and [RVM][rvm]).
* On Windows machines, you can use [RubyInstaller][rubyinstaller].

See the [Installation][installation] page for details on using
package management systems or third-party tools.

Of course, you can also install Ruby from source on all major platforms.

### Compiling Ruby — Source Code

Installing from the source code is a great solution for when you are
comfortable enough with your platform and perhaps need specific settings
for your environment. It’s also a good solution in the event that there
are no other premade packages for your platform.

See the [Installation][installation] page for details on building
Ruby from source. If you have an issue compiling Ruby, consider using
one of the third party tools mentioned above. They may help you.

* **Stable releases:**
  * [Ruby 4.0.6](https://cache.ruby-lang.org/pub/ruby/4.0/ruby-4.0.6.tar.gz)<br>
    sha256: 837d299e8f7ddf2be31a229a7a7e019d354979825117989acb3b32b1a9be262a
  * [Ruby 3.4.10](https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.10.tar.gz)<br>
    sha256: ecee2d072a14f2d14347dd56dfd8fe5c3130abf5117bfaacbda0f4ef9cc429ec
  * [Ruby 3.3.12](https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.12.tar.gz)<br>
    sha256: b06d63beae271933033e27f0a389bc582a009e7845357d44365c39de525a051b
  * [Ruby 3.2.11](https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.11.tar.gz)<br>
    sha256: b3eeabd6636f334531db3ffdc3229eb05e524740e6c84fdc043720573cf2f8b2






* **Not maintained anymore (EOL):**
  * [Ruby 3.1.7](https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.7.tar.gz)<br>
    sha256: 0556acd69f141ddace03fa5dd8d76e7ea0d8f5232edf012429579bcdaab30e7b


* **Snapshots:**
  * [Stable Snapshot of ruby_4_0 branch](https://cache.ruby-lang.org/pub/ruby/snapshot/snapshot-ruby_4_0.tar.gz):
    This is a tarball of the latest snapshot of the current `ruby_4_0` branch.
  * [Stable Snapshot of ruby_3_4 branch](https://cache.ruby-lang.org/pub/ruby/snapshot/snapshot-ruby_3_4.tar.gz):
    This is a tarball of the latest snapshot of the current `ruby_3_4` branch.
  * [Stable Snapshot of ruby_3_3 branch](https://cache.ruby-lang.org/pub/ruby/snapshot/snapshot-ruby_3_3.tar.gz):
    This is a tarball of the latest snapshot of the current `ruby_3_3` branch.
  * [Stable Snapshot of ruby_3_2 branch](https://cache.ruby-lang.org/pub/ruby/snapshot/snapshot-ruby_3_2.tar.gz):
    This is a tarball of the latest snapshot of the current `ruby_3_2` branch.
  * [Nightly Snapshot](https://cache.ruby-lang.org/pub/ruby/snapshot/snapshot-master.tar.gz):
    This is a tarball of whatever is in Git, made nightly.
    This may contain bugs or other issues, use at your own risk!

For more information about specific releases, particularly older releases
or previews, see the [Releases page][releases].
Information about the current maintenance status of the various
Ruby branches can be found on the [Branches page][branches].

For information about the Ruby Subversion and Git repositories, see our
[Ruby Core](/en/community/ruby-core/) page.

The Ruby source is available from a worldwide set of
[Mirror Sites][mirrors].
Please try to use a mirror that is near you.



[license]: /en/about/license.txt
[installation]: /en/documentation/installation/
[releases]: /en/downloads/releases/
[branches]: /en/downloads/branches/
[mirrors]: /en/downloads/mirrors/
[rvm]: http://rvm.io/
[rbenv]: https://github.com/rbenv/rbenv
[rubyinstaller]: https://rubyinstaller.org/
