Is is possible to install more than one gem at the same time with only one command?
You can put them in a Gemfile
and use bundler (bundle install
).
Alternatively, you could list the commands in a file:
gem install pg
gem install sqlite3
and use something like cat
to execute them.
**Consider using RVM to manage your gems into gemsets rather than installing them globally with sudo.