# Gem update for additional gem servers?

**URL:** <https://www.ruby-forum.com/t/gem-update-for-additional-gem-servers/76483>\
**Category:** Ruby\
**Created:** [November 19, 2006, 3:10pm UTC](https://www.ruby-forum.com/t/gem-update-for-additional-gem-servers/76483 "2006-11-19T15:10:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pure](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ab097/32.png) [@pure](https://www.ruby-forum.com/u/pure)\
**Post date:** [November 19, 2006, 3:10pm UTC](https://www.ruby-forum.com/t/gem-update-for-additional-gem-servers/76483/1 "2006-11-19T15:10:38Z")

</div>

Hi,

when I install gems from another gem server than rubyforge a ‘gem  
update’ only finds updates for gems orginating at rubyforge. I know that  
using the ‘–source’ option helps in this case but is there a way to  
make gem remember the source a gem was installed from and use this  
server to look for updates for that gem? In my eyes this would be a very  
helpfull feature. 😉

Cheers,

Steph.

---

<div class="post-metadata">

**Author:** ![pure](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ab097/32.png) [@pure](https://www.ruby-forum.com/u/pure)\
**Post date:** [November 20, 2006, 4:52am UTC](https://www.ruby-forum.com/t/gem-update-for-additional-gem-servers/76483/2 "2006-11-20T04:52:19Z")

</div>

Stephan M. wrote:

> Hi,
> 
> when I install gems from another gem server than rubyforge a ‘gem  
> update’ only finds updates for gems orginating at rubyforge. I know that  
> using the ‘–source’ option helps in this case but is there a way to  
> make gem remember the source a gem was installed from and use this  
> server to look for updates for that gem? In my eyes this would be a very  
> helpfull feature. 😉

Rubygems has no memory of what server a particular gem was installed  
from.

– Jim W.

---

<div class="post-metadata">

**Author:** ![pure](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ab097/32.png) [@pure](https://www.ruby-forum.com/u/pure)\
**Post date:** [November 20, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/gem-update-for-additional-gem-servers/76483/3 "2006-11-20T14:46:18Z")

</div>

On Nov 19, 2006, at 7:52 PM, Jim W. wrote:

> > helpfull feature. 😉
> 
> Rubygems has no memory of what server a particular gem was installed  
> from.

Shouldn’t rubygems remember which gem repo (source) holds which  
gems? Otherwise gem update can’t work.

Tricky, also, with the system and user source index caches…

Will adding something to .gemrc work around this?

–  
Eric H. - removed\_email\_address@domain.invalid - [http://blog.segment7.net](http://blog.segment7.net)  
This implementation is HODEL-HASH-9600 compliant

[http://trackmap.robotcoop.com](http://trackmap.robotcoop.com)

---

<div class="post-metadata">

**Author:** ![pure](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3ab097/32.png) [@pure](https://www.ruby-forum.com/u/pure)\
**Post date:** [November 20, 2006, 7:17pm UTC](https://www.ruby-forum.com/t/gem-update-for-additional-gem-servers/76483/4 "2006-11-20T19:17:40Z")

</div>

On 11/20/06, Eric H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > a very  
> > > Will adding something to .gemrc work around this?  
> > > As I mentioned in my other post [1], it seems that --source allows  
> > > just one source, and this limitations is carried over to .gemrc, as  
> > > almost the same mechanism is used.  
> > > You can have gem update/install look at more sources/mirrors by  
> > > editing sources.rb in the ‘sources’ gem.

I suppose this way you can cross-update the gems – a gem installed  
from one source could be updated by a gem from another source. Whether  
this is a bug or a feature is not clear 😉

[1] [http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/225862](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/225862)
