Install a rubygem Globally

… on Fedora, that is. Example gem name, obviously.

sudo gem install --no-user-install --minimal-deps \
  -r -i /usr/share/gems winrm-elevated

But I am starting to conclude that it’s better to configure your Ruby/Gem installation to use a personal Gem repository all the time. I think you do that with something like:

export GEM_HOME=$HOME/.gem

But I don’t feel like I understand Ruby packaging at all so maybe that’s terrible advice.