Local gem repo with just the latest versions

Rubygems totalled about 75GB last time I looked but that includes all
the old versions of each gem. I would like to create a local gem
repository but only download the latest version of each gem. Is it


Hi Gvim,

Are you using RVM?

If so, take a look at:

Abinoam Jr.

Sorry for the last answer.

I think I have misunderstood your question.

Are you talking about “local repo” like in that one that runs with
“gem server” ?

Abinoam Jr.

I use rbenv. No, gem server is for viewing documentation of installed
gems. I want to create a local repository of all gems so that I can
install what I want when no internet connection is available. However,
at 75GB, it’s just not feasible but if, say, 2/3 of that 75GB is older
versions then I would be interested in being able to create a local
repository containing only the latest version of each gem.


On Mon, Jan 27, 2014 at 9:23 AM, gvim [email protected] wrote:

Abinoam Jr.


only download the latest version of each gem. Is it possible?


While rubygems-mirror might look promising, it looks like it mirrors the
entire gem repo. I think it might be simpler (sorta?) to build your own
using Gem-in-a-box. Looking at
http://guides.rubygems.org/run-your-own-gem-server/ , I think it would
possible to rig up a script that snagged the newest version off rubygems
and stuffed it into your local gem server, no?

By the way, running gem server does more than serve up documentation.
will serve gems as well, which you can put into a Gemfile using the
statement, or add to sources in the gem command.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs