where is ruby 3.0.0 on rbenv

Viewed 6739

rbenv install --list-all shows me, among many other things of course,

3.0.0-dev
3.0.0-preview1
3.0.0-preview2

But where is 3.0.0 itself, the actual final release? I'd like to try it out. Not all announced features made it into the previews so I need the real thing.

3 Answers

rbenv install passes thru ruby-build. You need to update (brew upgrade if installed via Homebrew) your ruby-build in order to see the latest versions.

On Ubuntu

Short answer:

# You need to update the available versions via ruby-build
~ git -C ~/.rbenv/plugins/ruby-build pull
~ rbenv install 3.0.0
...
Installed ruby-3.0.0 to ~/.rbenv/versions/3.0.0

Long answer with a beautiful picture: https://richstone.io/where-is-ruby-3-0-0-on-rbenv/

Ubuntu

  1. git -C ~/.rbenv/plugins/ruby-build pull (pulls latest ruby versions)
  2. rbenv install 3.0.0 (or for later versions: 3.x.x)
  3. echo "3.0.0" > .ruby-version OR rbenv local 3.0.0 to ensure ruby 3.0.0 is used.

Mac

brew upgrade
Related