Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install latest Packer using command line
#!/bin/bash
apt-get install -y --no-install-recommends curl jq unzip
PACKER_LATEST_VERSION=$(curl -s https://checkpoint-api.hashicorp.com/v1/check/packer | jq -r -M '.current_version')
curl https://releases.hashicorp.com/packer/${PACKER_LATEST_VERSION}/packer_${PACKER_LATEST_VERSION}_linux_amd64.zip --output /tmp/packer_linux_amd64.zip
unzip /tmp/packer_linux_amd64.zip -d /usr/local/bin/
rm -f /tmp/packer_linux_amd64.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.