How to: Update your gem sources list on Ubuntu written by: Lee Richmond posted on: 11 August 2009

I recently wanted to edit my gem sources list to incorporate http://gems.github.com as I whenever I wanted to try a new gem I had found on there or more recently when I was doing a fresh install of everything on my home machine I was finding it pretty tedious having to go to github finding the link for the gem and adding it to the end of the gem install command.

However after doing a bit of reading I found that it is amazingly simple to update this list, so using the instance above to add github.com to my gem list I ran the following command from my terminal:

sudo gem sources -a http://gems.github.com

If it has worked you will get a message displayed saying that it has been added.

Also say for instance that you decide at some point you no longer what this item in your sources list simple type the following command to remove it:

sudo gem sources -r http://gems.github.com

and this will remove said item from the list.

comments

Be the first to comment on this article
this will not be published (include http://)

Rss RSS Atom ATOM

<<back to articles

latest articles

categories

Follow_me Recommend Me Geekup-logo