Skip to content

Commit

Permalink
Create install-packer.md
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorific committed Nov 12, 2023
1 parent e8e5711 commit 73a8e06
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/install-packer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Install Hashicorp Packer on Ubuntu 22.04

```
# Add Hashicorp's official GPG key
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/hashicorp.gpg
sudo chmod a+r /etc/apt/keyrings/hashicorp.gpg
# Add the repository to Apt sources
echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/hashicorp.gpg] https://apt.releases.hashicorp.com \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" main" | \
sudo tee /etc/apt/sources.list.d/hashicorp.list > /dev/null
sudo apt-get update
# To install the latest version
sudo apt install packer
# Verify the install
$ packer version
Packer v1.9.4
```

0 comments on commit 73a8e06

Please sign in to comment.