socksocket
socksocket

Reputation: 4371

Rubygems - where are the package downloaded?

When you install a new package, for example, 'gem install fb-graph', where are the files downloaded?

Upvotes: 5

Views: 80

Answers (3)

user904990
user904990

Reputation:

as @Philip suggested, use gem environment to see default locations.

if you need to install in custom folder, set GEM_HOME variable:

export GEM_HOME=~/gems
gem install fb-graph

will install fb-graph in your home dir, in gems/ folder

to persist this, put export GEM_HOME=/path/to/gems in your .bash_profile or .bashrc file

Upvotes: 4

Yannick Chaze
Yannick Chaze

Reputation: 576

Use this command to find where a particular gem is installed:

gem which <gem_name>

For example:

gem which fb-graph

Upvotes: 7

Philip Hallstrom
Philip Hallstrom

Reputation: 19899

$ gem environment

This will spit out information that will tell you where things are being installed.

Upvotes: 5

Related Questions