ruby install on fedora code example

Example 1: ruby install on fedora

rvm list

   ruby-2.4.4 [ x86_64 ]
 * ruby-2.5.1 [ x86_64 ]
=> ruby-2.7.0 [ x86_64 ]

# => - current
# =* - current && default
#  * - default

Example 2: ruby install on fedora

rvm list known

Example 3: ruby install on fedora

rvm requirements run

Checking requirements for fedora.
Requirements installation successful.

Example 4: ruby install on fedora

source /etc/profile.d/rvm.sh
rvm reload

Example 5: ruby install on fedora

sudo -i
dnf install gcc-c++ patch readline readline-devel zlib zlib-devel \
    libyaml-devel libffi-devel openssl-devel make \
    bzip2 autoconf automake libtool bison sqlite-devel

Example 6: ruby install on fedora

curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -
curl -L get.rvm.io | bash -s stable

Example 7: ruby install on fedora

ruby --version

ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux]

Example 8: ruby install on fedora

rvm use 2.7 --default

Using /usr/local/rvm/gems/ruby-2.7.0

Example 9: ruby install on fedora

rvm install 2.7