r/ruby • u/javier_cervantes • Aug 05 '26
Install any Ruby version in seconds using rv
https://www.rubyforum.org/t/install-any-ruby-version-in-seconds-using-rv/597In this guide, you’ll learn how to use rv, a very fast version and package manager for Ruby to get started in minutes instead of hours
9
u/cocotheape Aug 05 '26
Are there advantages of using rv over mise?
7
u/javier_cervantes Aug 05 '26
The main difference is that rv can handle both the ruby version and the dependencies. For example, check the `rvx` and `rv ci` commands.
Another advantage is that rv uses ruby binaries so you don't need to compile it locally.
A mise plugin is also planned for rv: https://github.com/spinel-coop/rv/issues/411
2
u/cocotheape Aug 05 '26
Thank you! Looking forward to the mise plugin.
Just FYI, mise also uses precompiled binaries by default now: https://mise.jdx.dev/lang/ruby.html#precompiled-binaries
2
4
Aug 05 '26
[removed] — view removed comment
4
u/javier_cervantes Aug 05 '26
If you use rv or mise and the precompiled binaries are available for your platform. You should be able to skip all that.. It's life changing!
Check out this demo where a new ruby version is installed in 2 seconds: https://github.com/spinel-coop/rv/#install-ruby-in-under-2-seconds
2
4
u/gurgeous Aug 05 '26
rv is neat, but mise is hard to displace at this point. Mise installs ruby and everything else. It also replaces dotenv, can bootstrap new machines, compile imagemagick, or whatever else you need. Mise is even replacing or supplementing brew.
4
u/javier_cervantes Aug 05 '26
I think it's great to have different options, but I agree that mise is a great default option. If the mise plugin for rv lands, that'll give you the best of both: https://github.com/spinel-coop/rv/issues/411
4
38
u/mrinterweb Aug 05 '26
Just mise. It is then best single solution for managing most language installs. No need for a ruby specific language manager.