posted 5 years ago
Ruby is used in so many different places these days, I'm not sure you can uninstall it and still have a functional OS. Certainly you wouldn't be able to uninstall Python - the Anaconda OS boot subsystem is written in Python.
However, if you're willing to risk it, don't attempt to remove Ruby by brute-force file deletion. You are likely to miss all the places where ruby-related files are hidden and end up with trash in your system.
Instead, remove the ruby packages using RPM. Use the command "rpm -qa | grep ruby" to find all the primary ruby packages. In addition, you'll probably have to track down ruby-related packages - removing node.js, for example, means that you'd have to remove npm. Ruby is likely to have some "gem" RPMs and probably other stuff as well.
Since many of these packages reference other packages, you'll have to either determine the dependency chain and remove them in reverse dependency order or make up a big long rpm --erase command line that removes them all in one shot.
Happy hunting!
I'm going to be a "small government" candidate. I'll be the government. Just me. No one else.