Ruby – Install Specific Version of a Ruby Gem

rubyrubygems

Using the command-line gem tool, how can I install a specific version of a gem?

Best Answer

Use the -v flag:

$ gem install fog -v 1.8
Related Question