'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.



Solution 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Rob Bednark