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

Related Posts:

About the Author:

Joseph is the lead developer of Vert Studios, a web design company located in Tyler, Tx. Follow him on Twitter! @Joe_Query.

  1. John

    Thanks! Worked like a charm :)

Add to the conversation: