How can I manage remote source for gem?

How can I add a remote source to my gem sources list? How can I remove a gem source from my gem remote sources?

For example, if you have added http://rubygems.org/ to RubyGems sources, how can you remove it?

To show current enabled gem sources, run,

$ gem sources

*** CURRENT SOURCES ***

http://rubygems.org
http://gems.rubyforge.org/

To Delete the specified gem source, you can run,

# gem sources -r http://rubygems.org/

By the way, to add a gem source, run,

# gem sources -a http://gems.rubyforge.org/
http://gems.rubyforge.org/ added to sources
Share Button

Leave a comment

Your email address will not be published. Required fields are marked *