Last active
January 11, 2022 12:22
-
-
Save UbuntuEvangelist/b885ce15b1807a25b7915726c8d4f4b9 to your computer and use it in GitHub Desktop.
RVM Setup For Ubuntu 20.04 LTS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo -i | |
apt install software-properties-common | |
apt-add-repository -y ppa:rael-gc/rvm | |
apt update -y && apt upgrade -y | |
apt install rvm | |
source /etc/profile.d/rvm.sh | |
usermod -a -G rvm $USER | |
rvm user gemsets | |
rvm install ruby | |
OR | |
rvm install ruby-3.0.0 --with-openssl-dir='/usr/local/opt/openssl' | |
man rvm | |
curl -sSL https://rvm.io/mpapis.asc | sudo gpg2 --import - | |
curl -sSL https://rvm.io/pkuczynski.asc | sudo gpg2 --import - | |
rvmsudo rvm get master | |
unset GEM_HOME | |
# Please open a new shell or run one of the following commands: | |
rvm reload | |
echo rvm_auto_reload_flag=1 >> ~/.rvmrc | |
echo rvm_auto_reload_flag=2 >> ~/.rvmrc | |
rvmsudo rvm cleanup all | |
rvm fix-permissions | |
rvm get stable --auto-dotfiles | |
nano ~/.rvmrc | |
# add | |
rvm_silence_path_mismatch_check_flag=1 | |
# save and exit | |
rvm use default ruby-3.0.0 | |
rvm rubygems 3.0.0 --force | |
rvm --version | |
rvm list | |
# Credits: https://github.com/rvm/ubuntu_rvm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment