Skip to content

Instantly share code, notes, and snippets.

@picatz
Last active August 13, 2017 13:51
Show Gist options
  • Save picatz/0c85ac20e2fe9363a85960c0494273a1 to your computer and use it in GitHub Desktop.
Save picatz/0c85ac20e2fe9363a85960c0494273a1 to your computer and use it in GitHub Desktop.
Intall Ruby 2.4.1 with RVM and BASH
# Install the Ruby Version Manager
function install_rvm() {
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
curl -sSL https://get.rvm.io | bash -s stable
source /home/$USER/.rvm/scripts/rvm
echo "source /home/$USER/.rvm/scripts/rvm" >> /home/$USER/.bashrc
rvm install 2.4.1
}
# call the function
install_rvm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment