Skip to content

Instantly share code, notes, and snippets.

@kaorukobo
Created April 23, 2017 11:51
Show Gist options
  • Save kaorukobo/418365788739c78147685365abf91c6d to your computer and use it in GitHub Desktop.
Save kaorukobo/418365788739c78147685365abf91c6d to your computer and use it in GitHub Desktop.
This oneliner rollbacks (undos) package installations by `bundler install`. Copy bundler's output contains `Installing PACKAGE VER.SI.ON` lines into bunder_output.log then execute this.
ruby -e '$<.scan(/Installing (\S+) (\S+)/).each do |pkg, ver| system "gem uninstall -v #{ver} #{pkg}"; end' bundler_output.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment