This post will show you how to install packer on ubuntu 18.04.
Packer is an open source tool for creating identical machine images for multiple platforms from a single source configuration. Packer is lightweight and runs on every major operating system. Packer does not replace configuration management tools like Ansible, Chef or Puppet. In fact, when building images, Packer is able to use tools like Ansible Chef or Puppet to install software onto the image.
- Browse to https://www.packer.io/downloads.html. Look for the Linux section, right click on the 64-bit option and select Copy link address
- Next go to your Ubuntu terminal and input
wget and paste the url you just copied
- You now should have a zipped version of the packer package in you Downloads directory.
- Unzip this package
- Next move the binary to /usr/local/bin
sudo mv packer /usr/local/bin/
- To confirm a successful install type packer in your terminal and you should see something like the following
That's it, packer should now be installed and ready for use.Leave a comment below if this worked for you or not.