

Use the curl command to install RVM in your system. It provides an easy way to install and manage ruby versions independently by automatically downloading its dependencies. Set Ruby v2.7.0 as the default version for all login shells.

You can also install or use the different versions of Ruby, run the rbenv install command with Ruby version rbenv install -l. The installation process may take up to 20 minutes to complete, so please be patient. The above commands will install rbenv into your home directory and set appropriate environment variables.įor this post, we will install the latest version of Ruby (v2.7.0). cdĮcho 'export PATH="$HOME/.rbenv/bin:$PATH"' > ~/.bashrcĮcho 'eval "$(rbenv init -)"' > ~/.bashrcĮcho 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' > ~/.bashrc To install rbenv on your system, run the below commands. The rbenv lets you install and manage the versions of Ruby easily, and it is simpler than RVM. curl -sS | sudo apt-key add -Įcho "deb stable main" | sudo tee /etc/apt//yarn.list Add the Yarn repository to install the Yarn package manager.
