Install Gems without ri, rdoc documentation

These days it is not necessary to have gem documentation installed locally. This unnecessarily increases installation time. Unless you have specific requirement for locally available documentation, you can skip the installation of rdoc and ri documentation when installing gems.

Just add this to your home directory in <home_directory>/.gemrc file

gem: --no-document # skip installation of all documentation


gem: --no-rdoc --no-ri # For some reason the above configuration did not work for me on my office computer

# Or add these to skip either ri or rdoc documentation
# gem: --no-ri
# gem: --no-rdoc

With this file in place, next time you install a gem, no documentation will be installed.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s