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.
LOG
# 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
...Abbreviation
# which ruby
/opt/rh/rh-ruby27/root/usr/bin/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: ty1.mirror.newmediaexpress.com
* centos-sclo-rh: ty1.mirror.newmediaexpress.com
* centos-sclo-sclo: ty1.mirror.newmediaexpress.com
* extras: ty1.mirror.newmediaexpress.com
* updates: ty1.mirror.newmediaexpress.com
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