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
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
source /etc/profile.d/rvm.sh
rvm reload
rvm requirements run
Checking requirements for fedora.
Requirements installation successful.
rvm list known
rvm install 2.7
rvm list
ruby-2.4.4 [ x86_64 ]
* ruby-2.5.1 [ x86_64 ]
=> ruby-2.7.0 [ x86_64 ]
# => - current
# =* - current && default
# * - default
rvm use 2.7 --default
Using /usr/local/rvm/gems/ruby-2.7.0
ruby --version
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux]
sudo dnf install rubygem-rails # Install Rubygem. RPM-packaged from Fedora official repositories
sudo dnf group install 'Ruby on Rails' # Install Rails framework