From: Eric Hodel Date: 2008-07-25T12:15:41+09:00 Subject: Re: avoid reinstalling gem (if its already installed?) On Jul 24, 2008, at 17:30 PM, Rob Sanheim wrote: > On Thu, Jul 24, 2008 at 7:40 PM, Eric Hodel > wrote: >> On Jul 24, 2008, at 13:26 PM, Rob Sanheim wrote: >>> >>> Is there a way to have rubygems not reinstall a gem if the latest >>> version is already installed? >>> >>> For example, I want the second 'install' below to simply say >>> 'already >>> installed' and exit successfully. >> >> Why do you care? > > I'm going to be setting up machines with stock set of gems, and then > periodically refreshing them with a revised list. I'd like to have > gem skip the ones it already has for efficiency. > > So I take it I would have to use the gem api to do this? No, your "stock set of gems" should be a gem that only has dependencies on other gems.