Skip to content

Instantly share code, notes, and snippets.

@takuan-osho
Created February 20, 2017 23:33
Show Gist options
  • Select an option

  • Save takuan-osho/249a8481de4124442adb82cd408c05cb to your computer and use it in GitHub Desktop.

Select an option

Save takuan-osho/249a8481de4124442adb82cd408c05cb to your computer and use it in GitHub Desktop.
homebrewでcleanup候補をリストあっぷするスクリプト
#!/bin/bash
brew cleanup 2>&1 | grep Skipping | cut -d ' ' -f3 | cut -d ':' -f1 > skiplist.txt
#!/bin/sh
while read line; do
brew uninstall $line
done < ./skiplist.txt
brew cleanup
while read line; do
brew install $line
done < ./skiplist.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment