Skip to content

Instantly share code, notes, and snippets.

@UbuntuEvangelist
Last active January 11, 2022 12:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save UbuntuEvangelist/b885ce15b1807a25b7915726c8d4f4b9 to your computer and use it in GitHub Desktop.
Save UbuntuEvangelist/b885ce15b1807a25b7915726c8d4f4b9 to your computer and use it in GitHub Desktop.
RVM Setup For Ubuntu 20.04 LTS
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
@UbuntuEvangelist
Copy link
Author

Screenshot from 2022-01-09 20-14-51
Screenshot from 2022-01-09 20-14-55

@UbuntuEvangelist
Copy link
Author

Screenshot from 2022-01-09 20-16-38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment