> ## Content Index
> Fetch the complete content index at: https://til.codes/llms.txt
> Use this file to discover other available public pages before exploring further.

# How do I make --no-ri --no-rdoc the default for gem install?
- URL: https://til.codes/how-do-i-make-no-ri-no-rdoc-the-default-for-gem-install/
- Published: 2015-07-13T15:43:15.000Z
- Updated: 2015-07-13T15:43:15.000Z
- Author: Manu Ajith
- Tags: til, ruby, gem, rails, #Import 2024-07-13 21:01

If you are deploying to a server, or you do not want to wait around for rdoc and ri to install for each gem, you can disable them for gem installs and updates.

Just add the following line to your `~/.gemrc` or `/etc/gemrc`:

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

```

or

```
gem: --no-document

```

or if want to be more specific,

```
install: --no-document
update: --no-document

```