1. Download Packer
wget https://releases.hashicorp.com/packer/0.12.0/packer_0.12.0_linux_amd64.zip
2. Extract and move Packer distribution to /usr/local/packer
unzip packer_0.12.0_linux_amd64.zip -d packer sudo mv packer /usr/local/
3. Add Packer to the PATH
export PATH="$PATH:/usr/local/packer" source /etc/environment
4. Verify the installation
packer --version