I want to know how to update to the latest stable version of Ruby with Homebrew. I am not interested in using RVM. Thanks.
To update ruby-build simply cd into the folder with cd ~/. rbenv/plugins/ruby-build and pull the latest version by running git pull . Once the pull request is complete, you should be able to run rbenv install -l and see a list of the latest Ruby versions available for you to install.
I would use ruby-build
with rbenv
. The following lines install Ruby 3.1.0 and set it as your default Ruby version:
$ brew update $ brew install ruby-build $ brew install rbenv $ rbenv install 3.1.0 $ rbenv global 3.1.0
brew upgrade ruby
Should pull latest version of the package and install it.
brew update
updates brew itself, not packages (formulas they call it)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With