1) Choose between Ruby Version Manager or RBENV
You’ll want to install either of two tools: Ruby Version Manager, known as RVM, or its alternative and competitor RBENV.
Benefits of RVM
Benefits of RBENV
RVM
You type rvm list
to see the list the installed versions of Ruby. To use a version, type rvm use
(for example, rvm use 2.6.4
). To install a new version of Ruby, use rvm install
(for example, rvm install 2.6.6
)
RBENV
RBENV | RVM | |
Switching between Rubies | Doesn’t actually switch your Ruby. Instead, it uses a shim (like a wrapper) to intercept executions of Ruby | Switches between Ruby versions installed. Automatically switches when you move between folders in your terminal by using the .ruby-version file. |
Where Ruby Is | ||