Skip to content

Instantly share code, notes, and snippets.

@cPLevey
Created December 13, 2016 16:21
Show Gist options
  • Save cPLevey/4bc40e1f7db38ac012976e4cd843093f to your computer and use it in GitHub Desktop.
Save cPLevey/4bc40e1f7db38ac012976e4cd843093f to your computer and use it in GitHub Desktop.
Fetch AMI repodata
#!/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&region=us-east-1" > $REPOFILE
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment