Tag : ruby gems

Painlessly Remove All Ruby Gems

Jan. 14, 2009

I noticed a lot of people searching for a way to delete all installed ruby gems and finding my Painless Cleanup of Ruby Gems With Similar Names page. I added this page for those of you who want to delete all installed gems instead of just cleaning them up.

Listing all gems is easy: gem list

OK, we can list our gems, but how do we delete them all? My list looks something like this:


abstract (1.0.0)
actionmailer (2.2.2, 2.1.2, 2.1.1, 2.1.0, 2.0.2, 1.3.6)
actionpack (2 ...

Short url : http://bit.ly/lXgr3v

Painless Cleanup of Ruby Gems With Similar Names

Dec. 18, 2008

I have been riding the bleeding edge of Merb and Datamapper for about seven or eight months. Whenever the source was updated at Github , I would pull in the changes, rebuild, then reinstall the gems. There was a time when the Merb and Datamapper contributors were bumping versions regularly and I was having problems with versions interfering with each other. I wanted only the latest and greatest gems installed.

Luckily Merb gems all start with ‘merb’ and Datamapper gems all start with ‘dm’. All I needed to do was write a shell command which lists all gems beginning with ‘merb ...

Short url : http://bit.ly/mkbmu0