I know that when using gem install
, the gem will be stored under /home/username/.rvm/gems/, under which gemset the gem was installed.
But if I use Bundler and specify the gem in the Gemfile, when I run bundle install, where will those gems be stored? And what if I already installed the gem using gem install
, if I run bundle install, will it use the previous gem installed using gem install
?
If you want to find out where a particular gem is stored you can run bundle info <gem-name>
. For example:
user@host$ bundle info rake
/var/bundle/ruby/2.1.0/gems/rake-10.4.2
For older versions of rake, the command could be bundle show <gem_name>.