Ruby on Rails does not function on Amazon Linux servers and is not supported on CentOS 7 servers.
Uninstall Ruby with the rpm command
To determine whether Ruby exists on your server, run the following command:
The command returns output that resembles the following example:
To remove a package, run the
e --nodeps packagename command, where
packagename represents the name of a package.