Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A shit script to remove Ruby installed from source
gem list | grep -v "test-unit|rdoc|psych|io-console|minitest|rake|bigdecimal|json" | cut -d" " -f1 | xargs gem uninstall -aIx
rm -rf /usr/local/lib/ruby
rm -rf /usr/local/share/doc/ruby
rm -rf /usr/local/share/ri
rm -rf /usr/local/include/ruby-*
rm -rf /usr/local/bin/ruby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.