Install Ruby Version Manager (RVM) on Mac
Published: Oct 19, 2019
Updated: Feb 28, 2022
Updated: Feb 28, 2022
I agree, it shouldn’t be this hard. Alas.
-
Install Homebrew
-
Install GPG
brew install gpg
-
Import RVM keys into GPG
curl -sSL https://rvm.io/mpapis.asc | gpg --import - curl -sSL https://rvm.io/pkuczynski.asc | gpg --import -
-
Trust RVM keys with GPG
echo 409B6B1796C275462A1703113804BB82D39DC0E3:6: | gpg --import-ownertrust echo 7D2BAF1CF37B13E2069D6956105BD0E739499BDB:6: | gpg --import-ownertrust
-
Install RVM
\curl -sSL https://get.rvm.io | bash -s -- --ignore-dotfiles
-
To source RVM, add this line to your shell config file
source ${HOME}/.rvm/scripts/rvm
-
Restart Terminal
-
Confirm installation
rvm --version
See RVM CLI docs for how to manage different versions of Ruby.