Install gem without documentation

If you need to install your gems without extra documentation, use flags –no-rdoc and –no-ri


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


You can automate this with the following in your .gemrc :

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

It is said that using these flags on every gem command can break things, so the alternate configuration is:

install: --no-rdoc --no-ri 
update:  --no-rdoc --no-ri
  • Thank you for this information. I’m certain it’s covered elsewhere, but too often simple tasks such as this are mired down in endless bullshit.

  • @ Daniel Waite – it’s in the gem help – type gem help install =)

  • Thanks for this! It takes way too long to install the rails documentation.