MacOS – Cleaning off packages installed via Terminal on OSX

macosterminal

I have been learning to use Terminal to install packages (particularly to learn Ruby development). I believe that I'm experiencing some conflicts with things that have been installed and would like to remove them. The issue is, during my trial and error, forgot everything that was installed.

QUESTION:
Is there a way to list out anything that has been installed through Terminal? And what is the best way to remove those items? I assume they need to be uninstalled individually or I would have to a complete reset for OSX.

Any guidance would be appreciated. Thank you.

Best Answer

I can only speak for Homebrew but I would imagine the other utilities you used should have similar options. With Homebrew you can list everything installed by Homebrew with brew list. After this you can remove installed applications using brew remove <application-name>. Homebrew should have installed everything in /usr/local/Cellar/. I would recommend checking out the official FAQ to learn how to uninstall Homebrew altogether. I know this doesn't cover all of the tools you used but I hope it helps at least a little bit.