Search code examples
bundler

How do I force Bundler to reinstall all of my gems?


How do I force Bundler to reinstall all of the gems in my gemfile? Or, how do I force Bundler to uninstall all of the gems it installed so I can then reinstall them myself?


I saw rails bundle clean, but this question explains how to remove gems that bundle installed but are no longer in the gemfile.

And How to reinstall a gem using bundler explains how to reinstall a single gem. I would like to reinstall all of my gems at once.


Solution

  • bundle install --redownload
    

    See the reference for bundle install: https://bundler.io/v2.2/man/bundle-install.1.html

    or

    bundle install --force
    

    For older versions of bundler