Created
April 23, 2017 11:51
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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