Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 425673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:24:12+00:00 2026-05-12T19:24:12+00:00

I ran gem sources -c so that I have to deliberately specify where I

  • 0

I ran “gem sources -c” so that I have to deliberately specify where I want to install a gem from since I now have 3 different sources for gem installs – RubyForge, Github and Gemcutter.

C:\>gem sources -c
*** Removed specs cache ***
*** Removed user source cache ***
*** Removed latest user source cache ***
*** Removed system source cache ***
*** Removed latest system source cache ***

After running this command I again ran gem sources to make sure I no longer have any default sources and I get this:

C:\>gem sources
*** CURRENT SOURCES ***

http://gems.rubyforge.org
http://gems.github.com
http://gems.rubyforge.org/
http://gemcutter.org

In other words, nothing has changed.

Looking at the help for gem sources -c below it seems to be the correct command to remove all gem sources at once:

    -c, --clear-all                  Remove all sources (clear the cache)

Otherwise, it seems you have to remove them one by one. Not a big deal since I only have 4 but I wonder what I actually deleted by doing “gem sources -c“.

C:\>gem sources --help
Usage: gem sources [options]

  Options:
    -a, --add SOURCE_URI             Add source
    -l, --list                       List sources
    -r, --remove SOURCE_URI          Remove source
    -c, --clear-all                  Remove all sources (clear the cache)
    -u, --update                     Update source cache

  Local/Remote Options:
    -p, --[no-]http-proxy [URL]      Use HTTP proxy for remote operations

  Common Options:
    -h, --help                       Get help on this command
    -V, --[no-]verbose               Set the verbose level of output
    -q, --quiet                      Silence commands
        --config-file FILE           Use this config file instead of default
        --backtrace                  Show stack backtrace on errors
        --debug                      Turn on Ruby debugging
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T19:24:13+00:00Added an answer on May 12, 2026 at 7:24 pm

    For each source rubygems keeps local caches of information about gems hosted at each source etc to speed up operations and that command just clears those caches.

    Looking at the rubygems source, on my system it for example removes

    C:/Users/Kris/.gem/specs
    C:/Users/Kris/.gem/source_cache
    C:/Users/Kris/.gem/latest_source_cache
    C:/Ruby/lib/ruby/gems/1.8/source_cache
    C:/Ruby/lib/ruby/gems/1.8/latest_source_cache
    

    You’ll still have to remove the actual sources yourself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was trying to update Rails and I ran gem install rails from my
I have ran gem install mysql2, added the lib file to the bin folder
I was following the instructions here , so I ran gem install jekyll on
I have been trying to run rake but it seems that ever since I
I ran: sudo gem install ruby-mbox Then: require rubygems require ruby-mbox mbox = Mbox.new(Inbox)
just ran gem update on a light use server machine that hadn't been updated
I accidentally ran: sudo gem install sqlite3 instead of: sudo gem install sqlite3-ruby So
I am using the nested_form gem but ran in to one use case that
Ran into something interesting, want to know if I'm doing something wrong or if
I ran into an issue that I've been researching for hours to no avail.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.