I just installed ruby via
brew install ruby
I have been advised to install it via RVM, even if I use Homebrew, but first I want to uninstall the ruby that homebrew just installed.
Can I simply do
brew uninstall ruby
Or do I need to do something else?
Uninstall Ruby on Mac with rbenv For rbenv, use rbenv versions to see which versions you have installed. Use the uninstall command to remove a version. This will remove any gems associated with the version as well. If you want to reinstall Ruby, see Install Ruby on Mac for recommendations of newer version managers.
There are two ways to remove rubies from rvm: rvm remove # Removes the ruby, source files and optional gemsets / archives. rvm uninstall # Just removes the ruby - leaves everything else.
Yes, brew uninstall ruby
should do the trick.
For more info, you can type man brew
in your terminal.
Doing brew uninstall ruby
will work. If you really want to be sure, you can run brew cleanup
after running the first command. Homebrew just removes unnecessary packages with the brew cleanup
command. In some cases, the last command is necessary for the formula to be completely gone. (An example is with the tree
formula, I had to use brew cleanup
for it to be entirely uninstalled.)
(I know this is late but this can apply to anyone who is viewing this)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With