packer command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
packer: command not found
or when using sudo you get the following error message
sudo: packer: command not found
Solutions to packer: command not found
How To Fix packer: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu packer is provided by packer package.
packer is:
Packer is an open source tool for creating identical machine images for multiple platforms from a single source configuration. Packer is lightweight, runs on every major operating system, and is highly performant, creating machine images for multiple platforms in parallel. Packer does not replace configuration management like Chef or Puppet. In fact, when building images, Packer is able to use tools like Chef or Puppet to install software onto the image.
A machine image is a single static unit that contains a pre-configured operating system and installed software which is used to quickly create new running machines. Machine image formats change for each platform. Some examples include AMIs for EC2, VMDK/VMX files for VMware, OVF exports for VirtualBox, etc.
For the documentation of Packer, please see https://www.packer.io/docs.
To fix this problem, we can install more using the command below.
sudo apt-get -y install packer
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install packer.
sudo apt -y install packer
Or if you have aptitude installed you can use the following command.
sudo aptitude install packer
Summary
In this tutorial we learn how to fix packer command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.