Because the solutions I googled didn’t work:

for g in `gem list --no-versions`; do
  gem uninstall --all --ignore-dependencies --executables $g
done

Spread the word!

share on Hacker News