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 

Unzip or extract the .zip file using the unzip command,
$ unzip  
 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