Remove All Ruby Gems (Ubuntu)

Recently (as in thirty seconds ago) I needed to remove all ruby gems from my system. After searching the interwebs, I came across an article explaining how to remove all ruby gems on Fedora core linux. The snippet adjustment for Ubuntu was easy, just involved remove some quotes and adding sudo. For a detailed explanation on how the command works, check out that article.

Remove All Ruby Gems

gem list | cut -d" " -f1 | xargs sudo gem uninstall -aIx
June 26, 2011
About the Author:

Joseph is the lead developer of Vert Studios Follow Joseph on Twitter: @Joe_Query
Subscribe to the blog: RSS
Visit Joseph's site: