If I download a .gem file to a folder in my computer, can I install it later using gem install
?
You can download gems from https://rubygems.org/gems/ or build you local gem via bundle and rack.
eg:
Take care of installing dependencies before installing actual gems.
Note: If using fluentd td-agent and ruby on same machine. Please make sure to use td-agent's td-agent-gem command. td-agent has own Ruby.