Skip to main content

Install Ruby Version Manager (RVM) on Mac

Published: 2019-10-19

  1. Install Homebrew
  2. Install GPG

    brew install gpg
    
  3. Import RVM keys into GPG

    curl -sSL https://rvm.io/mpapis.asc | gpg --import -
    curl -sSL https://rvm.io/pkuczynski.asc | 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 https://get.rvm.io | bash -s -- --ignore-dotfiles
    
  6. To source RVM, add this line to your bash config file, e.g. ~/.bash_profile

    source $HOME/.rvm/scripts/rvm
    
  7. Source bash config file

    source ~/.bash_profile
    
  8. Confirm installation

    rvm --version
    

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