The HashiCorp Packer is an open source tool that we can create identical machine golden images for multiple platforms from a single source configuration. This is really helpful for the cloud infrastructure.

Lets will go to install the HashiCorp-Packer tool in your Linux machine, like, CentOS, Ubuntu or Debian. Just follow the steps below,

Download the Packer package from the link using wget command,

$ wget https://releases.hashicorp.com/packer/1.8.2/packer_1.8.2_linux_amd64.zip 

Unzip or extract the .zip file using the unzip command,
$ unzip packer_1.8.2_linux_amd64.zip  
  
 You need to move the packer executable file to any bin or sbin location,

$ echo $PATH 

$ mv packer /usr/sbin/. 

Check your packer version, 
$ packer -version