Skip to content

Instantly share code, notes, and snippets.

@phumpal
Created February 3, 2016 23:11
Show Gist options
  • Select an option

  • Save phumpal/8fa7f776ae34a225e7d0 to your computer and use it in GitHub Desktop.

Select an option

Save phumpal/8fa7f776ae34a225e7d0 to your computer and use it in GitHub Desktop.
A shit script to remove Ruby installed from source
#!/bin/bash
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