Install Ruby Version Manager (RVM) on Mac

Published: Oct 19, 2019
Updated: Feb 28, 2022

I agree, it shouldn’t be this hard. Alas.

  1. Install Homebrew

  2. Install GPG

     brew install gpg
  3. Import RVM keys into GPG

     curl -sSL | gpg --import -
     curl -sSL | gpg --import -
  4. Trust RVM keys with GPG

     echo 409B6B1796C275462A1703113804BB82D39DC0E3:6: | gpg --import-ownertrust
     echo 7D2BAF1CF37B13E2069D6956105BD0E739499BDB:6: | gpg --import-ownertrust
  5. Install RVM

     \curl -sSL | bash -s -- --ignore-dotfiles
  6. To source RVM, add this line to your shell config file

     source ${HOME}/.rvm/scripts/rvm
  7. Restart Terminal

  8. Confirm installation

     rvm --version

See RVM CLI docs for how to manage different versions of Ruby.