• Post Reply Bookmark Topic Watch Topic
  • New Topic

uninstall ruby in centos  RSS feed

 
sam liya
Ranch Hand
Posts: 1273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to uninstall ruby from my centos machine(AWS VM)
i try to get hte version of the ruby installed as below.



but when i searched any folders for named ruby as below  there is no any folders named ruby for   find / ruby

So how can i uninstalled the ruby from my machine ?
 
Tim Holloway
Bartender
Posts: 18781
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!