Skip to content

Instantly share code, notes, and snippets.

@CharlesTBetz
Last active March 29, 2020 02:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CharlesTBetz/20daf92169689e572873439439e1ad4f to your computer and use it in GitHub Desktop.
Save CharlesTBetz/20daf92169689e572873439439e1ad4f to your computer and use it in GitHub Desktop.
#!/bin/bash
# tightly coupled to current packer version, update as necessary
wget https://releases.hashicorp.com/packer/1.5.4/packer_1.5.4_linux_amd64.zip
unzip packer_1.5.4_linux_amd64.zip
mkdir -p ~/bin
mv -f packer ~/bin
rm packer_1.5.4_linux_amd64.zip
echo "either add ~/bin to your path or run as ~/bin/packer"
echo "one way to do this: "
echo "check ~/.bash_profile"
echo "add these lines if they aren't there"
echo "if [ -d "$HOME/bin" ] ; then"
echo " PATH="$HOME/bin:$PATH""
echo "fi"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment