{"id":33556,"date":"2026-11-28T22:06:13","date_gmt":"2026-11-28T22:06:13","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=33556"},"modified":"2026-11-28T22:06:13","modified_gmt":"2026-11-28T22:06:13","slug":"packer-tutorials-packer-install-and-configurations","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/packer-tutorials-packer-install-and-configurations\/","title":{"rendered":"Packer Tutorials: Packer Install and configurations"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">HashiCorp Packer is a single binary that builds machine images (AMIs, Azure images, Docker images, VMware templates and more) from one HCL template. The commands above install it on macOS, Windows, Ubuntu and CentOS. This guide updates those steps for current releases, then covers verification, plugin setup, useful environment variables and a first working build.<\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\">Mac<\/h2>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">brew tap hashicorp\/tap\r\nbrew install hashicorp\/tap\/packer\n<\/code><\/span><\/pre>\n\n\n<h2 class=\"wp-block-heading\">Windows<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/releases.hashicorp.com\/packer\/1.8.6\/packer_1.8.6_windows_amd64.zip\" rel=\"noopener\">https:\/\/releases.hashicorp.com\/packer\/1.8.6\/packer_1.8.6_windows_amd64.zip<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 1 &#8211; Download and Extract at c:\/tools\/packer<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 2 &#8211; Add &#8220;c:\/tools\/packer&#8221; into env PATH variable<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"933\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/04\/image-118-1024x933.png\" alt=\"Windows Edit environment variable dialog with C:\\tools\\packer added to the Path variable\" class=\"wp-image-33559\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/04\/image-118-1024x933.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/04\/image-118-300x273.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/04\/image-118-768x700.png 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/04\/image-118.png 1074w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Ubuntu<\/h2>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">$ wget -O- https:<span class=\"hljs-comment\">\/\/apt.releases.hashicorp.com\/gpg | sudo gpg --dearmor -o \/usr\/share\/keyrings\/hashicorp-archive-keyring.gpg<\/span>\n\r\n$ <span class=\"hljs-keyword\">echo<\/span> <span class=\"hljs-string\">\"deb &#091;signed-by=\/usr\/share\/keyrings\/hashicorp-archive-keyring.gpg] https:\/\/apt.releases.hashicorp.com $(lsb_release -cs) main\"<\/span> | sudo tee \/etc\/apt\/sources.<span class=\"hljs-keyword\">list<\/span>.d\/hashicorp.<span class=\"hljs-keyword\">list<\/span>\r\n\n$ sudo apt update &amp;&amp; sudo apt install packer<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h2 class=\"wp-block-heading\">Centos<\/h2>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">$ sudo yum install -y yum-utils\r\n$ sudo yum-config-manager --add-repo https:<span class=\"hljs-comment\">\/\/rpm.releases.hashicorp.com\/RHEL\/hashicorp.repo<\/span>\r\n$ sudo yum -y install packer<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Corrected and current install commands<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The steps above work in general, but a few have aged. The Windows link is pinned to an old 1.8.x release, the Ubuntu steps assume <code>gpg<\/code> and <code>wget<\/code> are already installed, and the CentOS steps target a distribution whose releases have reached end of life. Use the versions below instead.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Ubuntu \/ Debian.<\/strong> Install the prerequisites first and add the architecture to the repository line, so the commands also work on ARM64 hosts:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">sudo apt update &amp;&amp; sudo apt install -y gpg wget lsb-release\n\nwget -O- https:<span class=\"hljs-comment\">\/\/apt.releases.hashicorp.com\/gpg | \\<\/span>\n  sudo gpg --dearmor -o \/usr\/share\/keyrings\/hashicorp-archive-keyring.gpg\n\n<span class=\"hljs-keyword\">echo<\/span> <span class=\"hljs-string\">\"deb &#091;arch=$(dpkg --print-architecture) signed-by=\/usr\/share\/keyrings\/hashicorp-archive-keyring.gpg] https:\/\/apt.releases.hashicorp.com $(lsb_release -cs) main\"<\/span> | \\\n  sudo tee \/etc\/apt\/sources.<span class=\"hljs-keyword\">list<\/span>.d\/hashicorp.<span class=\"hljs-keyword\">list<\/span>\n\nsudo apt update &amp;&amp; sudo apt install -y packer<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\"><strong>RHEL, Rocky Linux, AlmaLinux (and CentOS Stream).<\/strong> Current releases use <code>dnf<\/code>, and <code>yum<\/code> is just an alias for it. The HashiCorp repository URL stays the same:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">sudo dnf install -y dnf-plugins-core\nsudo dnf config-manager --add-repo https:<span class=\"hljs-comment\">\/\/rpm.releases.hashicorp.com\/RHEL\/hashicorp.repo<\/span>\nsudo dnf install -y packer<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">On Fedora, replace the repo URL with <code>https:\/\/rpm.releases.hashicorp.com\/fedora\/hashicorp.repo<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Windows.<\/strong> Don&#039;t hard-code 1.8.6. Get the latest <code>windows_amd64<\/code> (or <code>windows_arm64<\/code>) zip from <code>https:\/\/releases.hashicorp.com\/packer\/<\/code>, extract <code>packer.exe<\/code> to <code>C:\\tools\\packer<\/code> and add that folder to the user or system <code>Path<\/code>. Windows paths use backslashes. If you use Chocolatey, this one command does the same job:<\/p>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">choco install packer -y<\/code><\/span><\/pre>\n\n\n<p class=\"wp-block-paragraph\"><strong>macOS.<\/strong> The Homebrew commands above are correct. Upgrade later with <code>brew upgrade hashicorp\/tap\/packer<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Manual binary install on any Linux host<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you can&#039;t add package repositories, for example on minimal CI runners or air-gapped hosts, download the zip directly and check its checksum before you trust it:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">PACKER_VERSION=<span class=\"hljs-string\">\"x.y.z\"<\/span>   <span class=\"hljs-comment\"># set to the latest version listed at releases.hashicorp.com\/packer\/<\/span>\ncd \/tmp\nwget https:<span class=\"hljs-comment\">\/\/releases.hashicorp.com\/packer\/${PACKER_VERSION}\/packer_${PACKER_VERSION}_linux_amd64.zip<\/span>\nwget https:<span class=\"hljs-comment\">\/\/releases.hashicorp.com\/packer\/${PACKER_VERSION}\/packer_${PACKER_VERSION}_SHA256SUMS<\/span>\n\n<span class=\"hljs-comment\"># Verify the download<\/span>\ngrep linux_amd64 packer_${PACKER_VERSION}_SHA256SUMS | sha256sum -c -\n\nunzip packer_${PACKER_VERSION}_linux_amd64.zip\nsudo install -m <span class=\"hljs-number\">0755<\/span> packer \/usr\/local\/bin\/packer<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\"><code>sha256sum -c<\/code> should print <code>packer_x.y.z_linux_amd64.zip: OK<\/code>. If it doesn&#039;t, delete the file and download it again.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Verify the installation<\/h2>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-6\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">packer version\nwhich packer        <span class=\"hljs-comment\"># Linux\/macOS<\/span>\nwhere packer        <span class=\"hljs-comment\"># Windows (cmd)<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\"><code>packer version<\/code> prints something like <code>Packer v1.x.y<\/code>. Running plain <code>packer<\/code> lists the subcommands: <code>init<\/code>, <code>fmt<\/code>, <code>validate<\/code>, <code>build<\/code>, <code>inspect<\/code>, <code>plugins<\/code> and others. Packer also supports shell tab completion:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-7\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">packer -autocomplete-install   <span class=\"hljs-comment\"># then restart your shell<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-7\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h2 class=\"wp-block-heading\">Configuration: plugins and environment variables<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Packer itself contains almost no builders. Recent releases no longer bundle the AWS, Azure, Docker, VMware and similar integrations. You declare them in a <code>required_plugins<\/code> block and download them with <code>packer init<\/code>. By default, plugins go to <code>~\/.config\/packer\/plugins<\/code> on Linux and macOS and to <code>%APPDATA%\\packer.d\\plugins<\/code> on Windows.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Variable<\/th><th>Purpose<\/th><\/tr><\/thead><tbody><tr><td><code>PACKER_LOG=1<\/code><\/td><td>Turns on detailed debug logging, which is essential when a build fails<\/td><\/tr><tr><td><code>PACKER_LOG_PATH<\/code><\/td><td>Writes the debug log to a file instead of stderr<\/td><\/tr><tr><td><code>PACKER_PLUGIN_PATH<\/code><\/td><td>Overrides the plugin directory, for example to use a shared or pre-seeded folder in CI<\/td><\/tr><tr><td><code>PACKER_CACHE_DIR<\/code><\/td><td>Where downloaded ISOs and other artefacts are cached<\/td><\/tr><tr><td><code>CHECKPOINT_DISABLE=1<\/code><\/td><td>Turns off the HashiCorp version check call<\/td><\/tr><tr><td><code>PKR_VAR_&lt;name&gt;<\/code><\/td><td>Sets the value of an input variable called <code>&lt;name&gt;<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-8\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">export PACKER_LOG=<span class=\"hljs-number\">1<\/span>\nexport PACKER_LOG_PATH=.\/packer-debug.log\npacker plugins installed   <span class=\"hljs-comment\"># list plugins already present<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-8\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h2 class=\"wp-block-heading\">Your first build: a Docker image<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This template needs only Docker on the local machine, so it&#039;s the quickest way to test the whole workflow without cloud credentials. Save it as <code>docker-ubuntu.pkr.hcl<\/code> in an empty folder:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-9\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">packer {\n  required_plugins {\n    docker = {\n      source  = <span class=\"hljs-string\">\"github.com\/hashicorp\/docker\"<\/span>\n      version = <span class=\"hljs-string\">\"~&gt; 1\"<\/span>\n    }\n  }\n}\n\nsource <span class=\"hljs-string\">\"docker\"<\/span> <span class=\"hljs-string\">\"ubuntu\"<\/span> {\n  image  = <span class=\"hljs-string\">\"ubuntu:24.04\"<\/span>\n  commit = <span class=\"hljs-literal\">true<\/span>\n}\n\nbuild {\n  name    = <span class=\"hljs-string\">\"first-build\"<\/span>\n  sources = &#091;<span class=\"hljs-string\">\"source.docker.ubuntu\"<\/span>]\n\n  provisioner <span class=\"hljs-string\">\"shell\"<\/span> {\n    inline = &#091;\n      <span class=\"hljs-string\">\"echo 'Built by Packer' &gt; \/etc\/packer-info\"<\/span>,\n      <span class=\"hljs-string\">\"cat \/etc\/packer-info\"<\/span>\n    ]\n  }\n\n  post-processor <span class=\"hljs-string\">\"docker-tag\"<\/span> {\n    repository = <span class=\"hljs-string\">\"local\/packer-ubuntu\"<\/span>\n    tags       = &#091;<span class=\"hljs-string\">\"v1\"<\/span>]\n  }\n}<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-9\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<ul class=\"wp-block-list\">\n<li><code>required_plugins<\/code> pins the Docker plugin to any 1.x release. <code>packer init<\/code> reads this block.<\/li>\n\n\n<li><code>source<\/code> sets where the build starts. Here that&#039;s a container from <code>ubuntu:24.04<\/code>, and <code>commit = true<\/code> saves the container as an image.<\/li>\n\n\n<li><code>provisioner &quot;shell&quot;<\/code> runs commands inside the container. Real templates install packages and harden the image at this stage.<\/li>\n\n\n<li><code>post-processor &quot;docker-tag&quot;<\/code> tags the result so it shows up in <code>docker images<\/code>.<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><code>packer init .<\/code> downloads the Docker plugin.<\/li>\n\n\n<li><code>packer fmt .<\/code> normalises the formatting of the HCL.<\/li>\n\n\n<li><code>packer validate .<\/code> checks syntax and configuration. It prints <code>The configuration is valid.<\/code><\/li>\n\n\n<li><code>packer build .<\/code> runs the build. The output ends with <code>Builds finished<\/code> and the image ID.<\/li>\n\n\n<li><code>docker run --rm local\/packer-ubuntu:v1 cat \/etc\/packer-info<\/code> confirms the change. It prints <code>Built by Packer<\/code>.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> For cloud images, switch to the matching plugin (for example <code>github.com\/hashicorp\/amazon<\/code> with an <code>amazon-ebs<\/code> source). The <code>init<\/code>, <code>validate<\/code> and <code>build<\/code> workflow stays the same. Supply credentials through environment variables or instance roles, never hard-code them in the template.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common errors and fixes<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Symptom<\/th><th>Cause<\/th><th>Fix<\/th><\/tr><\/thead><tbody><tr><td><code>packer: command not found<\/code> \/ <code>&#039;packer&#039; is not recognized<\/code><\/td><td>The binary&#039;s folder isn&#039;t on <code>PATH<\/code><\/td><td>Add the folder to <code>PATH<\/code> and open a new terminal<\/td><\/tr><tr><td>Running <code>packer<\/code> on RHEL\/Fedora prints cracklib usage text<\/td><td><code>cracklib<\/code> ships <code>\/usr\/sbin\/packer<\/code>, which can come before <code>\/usr\/bin<\/code> on <code>PATH<\/code>, especially for root<\/td><td>Call <code>\/usr\/bin\/packer<\/code> directly, create an alias, or reorder <code>PATH<\/code><\/td><\/tr><tr><td><code>Error: Missing plugins<\/code> or <code>Unknown source type<\/code><\/td><td>The plugin wasn&#039;t installed<\/td><td>Add a <code>required_plugins<\/code> block and run <code>packer init .<\/code><\/td><\/tr><tr><td><code>NO_PUBKEY<\/code> during <code>apt update<\/code><\/td><td>The keyring file is missing or wasn&#039;t created correctly<\/td><td>Run the <code>gpg --dearmor<\/code> step again and check the <code>signed-by<\/code> path<\/td><\/tr><tr><td>Plugin download fails in CI<\/td><td>Rate limiting or no internet access<\/td><td>Pre-seed plugins and point <code>PACKER_PLUGIN_PATH<\/code> at them, or cache the plugin directory<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Best practices<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Pin the Packer version in CI and pin plugin versions with <code>version<\/code> constraints, so builds can be reproduced.<\/li>\n\n\n<li>Run <code>packer fmt -check .<\/code> and <code>packer validate .<\/code> in pull-request pipelines before any <code>build<\/code>.<\/li>\n\n\n<li>Keep secrets in <code>PKR_VAR_*<\/code> environment variables or a secrets manager, and mark variables <code>sensitive = true<\/code> so they&#039;re hidden in logs.<\/li>\n\n\n<li>Store templates in Git next to your Terraform or Ansible code. Packer builds the image and the other tools deploy it.<\/li>\n\n\n<li>Clean temporary build resources such as security groups and keys. Packer removes them itself unless a build is interrupted.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">How do I check which version of Packer is installed?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Run <code>packer version<\/code>. It prints the installed version, and if update checks are enabled it also tells you when a newer release is available.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why does Packer say a builder or source type is unknown?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Most builders now ship as separate plugins. Declare the plugin in a <code>required_plugins<\/code> block and run <code>packer init .<\/code> before you validate or build.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Should I use JSON or HCL templates?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Use HCL2 (<code>.pkr.hcl<\/code>). JSON templates still work but are legacy, and <code>packer hcl2_upgrade<\/code> can convert an existing JSON template to HCL.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How do I upgrade Packer?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Upgrade it with your package manager: <code>brew upgrade hashicorp\/tap\/packer<\/code>, <code>sudo apt install --only-upgrade packer<\/code>, <code>sudo dnf upgrade packer<\/code> or <code>choco upgrade packer<\/code>. For manual installs, replace the binary with a newer one.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Where does Packer store plugins?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">On Linux and macOS the default is <code>~\/.config\/packer\/plugins<\/code>, and on Windows it&#039;s <code>%APPDATA%\\packer.d\\plugins<\/code>. Set <code>PACKER_PLUGIN_PATH<\/code> to use a different directory.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related tutorials<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/category\/infrastructure-as-code\/\">More Infrastructure as Code tutorials<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/category\/operating-systems\/linux\/\">More Linux tutorials<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/how-to-install-and-configure-pre-commit-on-macos-windows-and-linux-complete-step-by-step-guide\/\">How to Install and Configure pre-commit on macOS, Windows, and Linux: Complete Step-by-Step Guide<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>HashiCorp Packer is a single binary that builds machine images (AMIs, Azure images, Docker images, VMware templates and more) from one HCL template. The commands above install&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[26145,4957],"tags":[5495],"class_list":["post-33556","post","type-post","status-publish","format-standard","hentry","category-infrastructure-as-code","category-linux","tag-packer"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/33556","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=33556"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/33556\/revisions"}],"predecessor-version":[{"id":80395,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/33556\/revisions\/80395"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=33556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=33556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=33556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}