How To Install Ruby 2.5 on RHEL 8 / CentOS 8

In this guide, we will look at how you can Install Ruby 2.5 on RHEL 8 / CentOS 8. Ruby is a dynamic, open source, object-oriented scripting language created with simplicity and productivity in mind. In this guide, I’ll show you how to Install Ruby 2.5 on RHEL 8 / CentOS 8with RVM Ruby Version Manager.

Step 1: Install Ruby 2.5 on RHEL 8 / CentOS 8

RHEL 8 provides Ruby 2.5 in Appstream repository. You can confirm its availability using the command:

Step 2: Install RVM on RHEL 8 / CentOS 8

RVM is a command-line tool which allows you to easily install, manage, and work with multiple ruby environments from interpreters to sets of gems. Install RVM on RHEL 8 by running the commands below in your terminal