Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove a remote source from gem remote sources

Tags:

I have added gemcutter.org to my Rubygems sources, and now I do not know how to remove it.

$ gem sources *** CURRENT SOURCES ***  http://gemcutter.org http://gems.rubyforge.org/ 
like image 653
Željko Filipin Avatar asked Nov 04 '09 08:11

Željko Filipin


People also ask

What is Gemname?

GEMNAME - name of the gem to print information about.

Which is the command used to list all the gems available in Ruby?

The Gem command is included with Ruby 1.9+ now, and is a standard addition to Ruby pre-1.9. Because local_gems relies on group_by , it returns a hash of the gems, where the key is the gem's name, and the value is an array of the gem specifications.

Which of the following commands will be verify the existence of the RubyGems in your system?

Use $ gem list | grep YOURGEM to check if the YOURGEM is present.


2 Answers

$ gem sources -r http://gemcutter.org http://gemcutter.org removed from sources  $ gem sources *** CURRENT SOURCES ***  http://gems.rubyforge.org/ 
like image 163
Željko Filipin Avatar answered Sep 21 '22 20:09

Željko Filipin


In general you can find the syntax with

gem help *command* 

So this shows the options you needed:

gem help sources 
like image 40
Wilersh Avatar answered Sep 21 '22 20:09

Wilersh