Created
November 30, 2013 01:40
-
-
Save crmaxx/7714338 to your computer and use it in GitHub Desktop.
backup installed brew packages
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
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