Pavan Alapati Pavan Alapati - 5 months ago 39
Ruby Question

How to remove Ruby from OS X

We have ruby with version

ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin15]
.We need Uninstall ruby and install again.So We tried like this

Anshuls-Mac-mini-2:~ pankajthakur$ whereis ruby
Anshuls-Mac-mini-2:~ pankajthakur$ rm -f /usr/bin/ruby
rm: /usr/bin/ruby: Permission denied

We need Re-install in other location.Please guide to us.

My current MAC os Version 10.11.5(EI Capitan)


Did you try your command as a root ? :

sudo rm -rf /usr/bin/ruby