Install Ruby 2.7 on RHEL8 using Application Stream (AppStream) Reference: RHEL8 Package Configuration --BaseOS and Application Stream --Akahat Engineer Blog [Chapter 4 New Features Red Hat Enterprise Linux 8 \ | Red Hat Customer Portal](https://access.redhat.com/documentation/ja-jp/red_hat_enterprise_linux/8/html/8.3_release_notes/new-features#enhancement_dynamic- programming-languages-web-and-database-servers)
When introduced by this method, 2023-05 seems to be EOL from Red Hat Enterprise Linux 8 Application Streams Life Cycle --Red Hat Customer Portal. It is possible that the vulnerabilities and bugs reported after that will not be addressed.
# cat /etc/redhat-release Red Hat Enterprise Linux release 8.3 (Ootpa) # yum module install ruby:2.7 ...Abbreviation
# which ruby /usr/bin/ruby # ruby -v ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux]