temporary_user_name
temporary_user_name

Reputation: 37018

Using bundle vs gem for managing gems?

I am new to Ruby, and it seems like people use both gem as well as bundle on the command line to install, update, remove, and manage gems. Are RubyGems and Bundler interchangeable for gem management? I cannot tell the difference between gem install and bundle install, for instance.

Upvotes: 7

Views: 547

Answers (1)

Vijay Atmin
Vijay Atmin

Reputation: 465

gem install installs the specified gem.

e.g., gem install <gem_name>

bundle install reads the Gemfile and installs all the gems mentioned in Gemfile

Upvotes: 10

Related Questions