gem list | cut -d" " -f1 > gem_list.txt
cat gem_list.txt | xargs gem install
Last active
January 21, 2019 02:30
-
-
Save josh64x2/39d9623058b6209cd4eb5b476c648dfb to your computer and use it in GitHub Desktop.
Reinstall ruby gems
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If we need to include a non standard library path:
gem install some_extension_gem -- --with-extension-lib=/path/to/lib
from: https://stackoverflow.com/questions/41120566/how-to-pass-build-flags-like-with-ruby-include-to-gem-install#41121929
e.g.
gem update -- --with-idn-dir=/opt/homebrew