# lookup for `INSTALLATION DIRECTORY` and `GEM PATHS` env variables
gem env
# install from local gem repository
gem install --local path_to_gem/filename.gem
# Interactive ruby shell
irb
#or
irb <filename>bundle init
# update your `Gemfile`
bundle install
# this will create `Gemfile.lock` that keeps a snapshot of all gems' versions