Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

uninstall ruby in centos

 
Ranch Hand
Posts: 1325
1
  • 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 ?
 
Saloon Keeper
Posts: 21968
149
Android Eclipse IDE Tomcat Server Redhat Java 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!
 
Goodbye moon men. Hello tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic