Nikhil Yeole
Nikhil Yeole

Reputation: 347

Location of gem configuration file gemrc in ubuntu? Its not at home(~/.gemrc) or at /etc/gemrc

I have installed ruby 1.9.3p194 using rvm on ubuntu 12.04. Its not at home(~/.gemrc) or at /etc/gemrc Does rvm places gem configuration file gemrc somewhere else?

Is there any way i could find out where this files kept...by giving some option to $ gem command. Actually i want to disable by default rdoc and ri installation when any new gem is installed. For that i want to modify gemrc file which as :

install: --no-rdoc --no-ri 
update:  --no-rdoc --no-ri

Please help me.

Upvotes: 2

Views: 8550

Answers (1)

Peter Duijnstee
Peter Duijnstee

Reputation: 3779

You can locate any file on a Linux/Ubuntu system using locate, e.g.:

locate gemrc

But it's possible you don't have one yet. You can just create it yourself in your homedir (or even /etc/gemrc if you want to apply it to all users.) You're right that rvm does not install one by default (at least it didn't on my system.) So just do:

vi ~/.gemrc

And insert those lines you wrote in your post, it should work.

Upvotes: 5

Related Questions