Install Ruby 2.7 on CentOS 7 (SCL)


Install Ruby 2.7 on CentOS 7 using Software Collection (SCL) Reference: Quick Start — Software Collections


When introduced by this method, 2023-05 seems to be EOL from Red Hat Software Collections Product Life Cycle --Red Hat Customer Portal. Is done. Vulnerabilities and bugs reported after that may not be addressed.


Repository registration

# yum install -y centos-release-scl


# cat /etc/redhat-release
CentOS Linux release 7.8.2003 (Core)

# yum install -y rh-ruby27 which
# scl enable rh-ruby27 bash

Various confirmations

# which ruby

# ruby -v
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux]

# yum info rh-ruby27
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base:
 * centos-sclo-rh:
 * centos-sclo-sclo:
 * extras:
 * updates:
Installed Packages
Name        : rh-ruby27
Arch        : x86_64
Version     : 2.7
Release     : 2.el7
Size        : 0.0
Repo        : installed
From repo   : centos-sclo-rh
Summary     : Package that installs rh-ruby27
License     : GPLv2+
Description : This is the main package for rh-ruby27 Software Collection.

Recommended Posts

Install Ruby 2.7 on CentOS 7 (SCL)
Install Ruby 2.5 on CentOS 7 using SCL
Install Golang on CentOS 8
Install Neo4j 4.1.3 on centOS
Install Vertica 10.0 on CentOS 6.10
Install Ruby on Ubuntu 20.04
Install nginx on centOS7
Install Python 3 on CentOS 7
Install kuromoji on CentOS7
Install Mattermost on CentOS 7
Install PostGIS 2.5.5 on CentOS7
Install jpndistrict on CentOS 7
Install Redmine 4.1.1 on CentOS 7
Smokeping Install on CentOS7
Install PostgreSQL 13 on CentOS 7.5
Install OpenFOAM v2006 on CentOS
Install Jenkins on Docker's CentOS
Install Apache on CentOS on VirtualBox
Install Ruby 2.7 on RHEL 8 (AppStream)
Install Ruby on Sakura's VPS
Try DPDK20 SDK on CentOS7 ①Install
[Ruby on Rails] yarn install --check-files
Install Java Open JDK 8 on CentOS 7
How to install MariaDB 10.4 on CentOS 8
Install apache 2.4.46 from source on CentOS7
Steps to install MySQL 8 on CentOS 8
Steps to install devtoolset-6 on CentOS 7
Install ruby on Ubuntu 20.04 with rbenv
Install Java 9 on windows 10 and CentOS 7
Install MariaDB (CentOS 8)
Install samba4 from source code on CentOS8
Install the webmail client Rainloop on CentOS 8
How to install beta php8.0 on CentOS8
[CentOS] Install apache-loggen
OpenVPN on CentOS 8
Install CentOS 7 on Raspberry pi 4 Model B
Command to install nginx / PHP7 / php-fpm on CentOS7
Install Ruby / Rails on Mac M1 Big Sur 2021-01
Install GitLab on CentOS 8 with no internet connection
Install CMS Made Simple v2.2.2 on LAMP on CentOS 7.3
[Ruby on Rails] How to install Bootstrap in Rails
Install gradle on mac
Install Corretto 8 on Windows
Maven on CentOS 7 tutorial
Install Ruby 3.0.0 with asdf
Install OpenJDK on macOS
Docker installation on CentOS 6
Use perltidy on CentOS 8
Install pyqt5 on ubuntu
Try OpenLiteSpeed on CentOS8
Tomcat v8 on CentOS7
[CentOS7] Install aws cli
Install Docker on Manjaro
Zabbix 5 installation on CentOS 8
Use mod_auth_cas on CentOS 8
Install lombok on SpringToolSuite4
Ruby on Rails Elementary
Use bat on Centos.
Jetty v8 on CentOS7
Install Autoware on Ubuntu 18.04.5
Install openjdk11 on mac