• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Mike London

uninstall ruby in centos

Ranch Hand
Posts: 1325
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
Saloon Keeper
Posts: 26545
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic