Installing manually 

To install Packer manually, use the followings steps:

  1. Go to the official download page (https://www.packer.io/downloads.html) and download the package corresponding to your operating system.
  2. After downloading, unzip and copy the binary into an execution directory (for example, inside c:\Packer).
  3. Then, the PATH environment variable must be set with the path to the binary directory.
For detailed instructions on how to update the PATH environment variable on Windows, refer to this article:  https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/, and for Linux, refer to this one:  https://www.techrepublic.com/article/how-to-add-directories-to-your-path-in-linux/.

Now that we've learned how to install Packer manually, let's look at the options available to us to install it using a script.