Updating gems

I'm updating gems regularly for \d\d years now, but it is still hard to remember related commands. Should I use gem or bundle to upgrade bundle? Is it "update" or "upgrade"? Bwagh!

Updating Bundler:

bundle update --bundler

Note: - Gemfile.lock may lock Bundler version with BUNDLED WITH value. - Gemfile.lock may cause an alternative bundler version installation during bundle install.

Update system gems:

gem update --system

Getting gem paths and other environment variables:

gem env

Updating rbenv with Homenrew:

brew update
brew upgrade rbenv

Installing new Ruby version with rbenv:

rbenv install 3.2.2
bundle install


Somewhat related: