Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rubygems - where are the package downloaded?

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

like image 221
socksocket Avatar asked Nov 02 '12 17:11

socksocket


People also ask

Where are RubyGems stored?

When you use the --user-install option, RubyGems will install the gems to a directory inside your home directory, something like ~/. gem/ruby/1.9. 1 . The commands provided by the gems you installed will end up in ~/.

Where is my gem file?

Gemfile is a file which must be located in root of your rails project. It is used for describing gem dependencies for Ruby programs. The first thing in your gemfile is a source in which you tell the Gemfile where to look for gems. Source can be called as a block and you can have multiple sources in your gemfile.

Where does gem install gems?

By default, binaries installed by gem will be placed into: /usr/local/lib/ruby/gems/3.1. 0/bin You may want to add this to your PATH.

How do I install gem packages?

To install a gem, use gem install [gem] . Browsing installed gems is done with gem list . For more information about the gem command, see below or head to RubyGems' docs. There are other sources of libraries though.


1 Answers

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

gem which <gem_name>

For example:

gem which fb-graph
like image 111
Yannick Chaze Avatar answered Sep 25 '22 13:09

Yannick Chaze