Skip to content

Instantly share code, notes, and snippets.

@crmaxx
Created November 30, 2013 01:40
Show Gist options
  • Save crmaxx/7714338 to your computer and use it in GitHub Desktop.
Save crmaxx/7714338 to your computer and use it in GitHub Desktop.
backup installed brew packages
brew list > brew_list_tmp.txt
for each brew_list_tmp.txt do |pkg|
brew info pkg
get install string from "Built from source with:"
add "brew install #{pkg} #{params}" to brew_list.txt
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment