Last active
January 15, 2018 21:36
-
-
Save mark-schaal/0dda961412a5c31891a5bf86a53bcfdd to your computer and use it in GitHub Desktop.
Regenerates a local Home-brew installation from a Leaves export
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
#!/bin/sh | |
# Copy Homebrew manifest file from an S3 Bucket into the local system | |
aws s3 cp s3://<path>/<to>/<something.file> /tmp/homebrew-manifest.txt | |
# Iterate through each line of brew and install the identified package | |
# Assumes that the manifest file's schema was generated from the | |
# `brew leaves > homebrew-manifest.txt` command. | |
cat /tmp/homebrew-manifest.txt | \ | |
while read CMD; | |
do brew install $CMD; | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment