Created
December 13, 2016 16:21
-
-
Save cPLevey/4bc40e1f7db38ac012976e4cd843093f to your computer and use it in GitHub Desktop.
Fetch AMI repodata
This file contains hidden or 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 | |
for REPOFILE in {repomd.xml,comps.xml,updateinfo.xml.gz,primary.sqlite.bz2}; do | |
echo "Fetching $REPOFILE"; | |
curl -s "http://packages.us-east-1.amazonaws.com/2016.09/main/20160901f6a8/x86_64/repodata/$REPOFILE?instance_id=i-037c593f14c853b59®ion=us-east-1" > $REPOFILE | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment