Untuk menginstall Ruby di CentOS 8 ataupun RHEL 8, silakan ikuti cara berikut:
- Update repository DNF
[sourcecode]sudo dnf update[/sourcecode]
- Install GNUPG2 dan CURL
[sourcecode]sudo dnf install gnupg2 curl tar[/sourcecode]
- Lalu install Ruby
[sourcecode]sudo dnf install @ruby[/sourcecode]
jika selesai, silakan cek versinya:
ruby --version