install rvm
$ ruby -v # Check ruby version
$ rvm install ruby-X.X.X # Install specific ruby version
$ rvm list # List ruby versions
$ rvm use ruby-X.X.X # Choose a version to use
$ rvm use ruby-X.X.X --default # Set a version as default
4.6
5
\curl -sSL https://get.rvm.io | bash
Thank you!
5
0
3.88
8
Install GPG keys
# ----- Firewall issues -------------------
In case importing gpg keys hangs forever, it might be that is a firewall issue. If you are behind a firewall, make sure you open outgoing port 11371 (TCP).
# ----- Firewall issues -------------------
# ----- Alternatively -------------------
Alternatively you might want to import keys directly from our web server, although this is a less secure way:
curl -sSL https://rvm.io/mpapis.asc | gpg --import -
curl -sSL https://rvm.io/pkuczynski.asc | gpg --import -
#if error change to -> curl -L and with sudo gpg
# ----- Alternatively -------------------
# ----- Trust our keys -------------------
echo 409B6B1796C275462A1703113804BB82D39DC0E3:6: | gpg2 --import-ownertrust # [email protected]
echo 7D2BAF1CF37B13E2069D6956105BD0E739499BDB:6: | gpg2 --import-ownertrust # [email protected]
# ----- Trust our keys -------------------
# ----- Run verified installation -------------------
\curl -sSL https://get.rvm.io | bash -s stable
# ----- Run verified installation -------------------
Thank you!
8
0
3.25
4
gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
Thank you!
4
0
Are there any code examples left?
New code examples in category Shell/Bash