How to install gems without documentation by default

October 24th, 2011 at 12:18 pm 1 Comment

Here’s a quick tip I learned this weekend on how to get all your RubyGems installed without documentation by default.

I knew there was a way to prevent documentation from being installed at the command line with the –no-rdoc –no-ri options:

$ gem install rails --no-rdoc --no-ri

But there’s another way to prevent documentation from being installed. Create a .gemrc file in your home directory with the following:

gem: --no-ri --no-rdoc

Now you don’t have to worry about supplying the command line options, this will give you no documentation by default.

1 Response to “How to install gems without documentation by default”

  1. Stefan
    January 4th, 2012 at 7:50 pm

    Thanks! This was exactly what I was looking for.


Leave a Comment