Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

homebrew uninstall ruby

Tags:

homebrew

ruby

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?

like image 994
cchiera Avatar asked Sep 05 '12 19:09

cchiera


People also ask

How do I uninstall Ruby on Mac?

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.

How do I uninstall Ruby on Mac RVM?

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.


2 Answers

Yes, brew uninstall ruby should do the trick.

For more info, you can type man brew in your terminal.

like image 145
Ylan S Avatar answered Sep 29 '22 12:09

Ylan S


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)

like image 36
ShrubtheBub Avatar answered Sep 29 '22 12:09

ShrubtheBub