Install Vault in Unix
HashiCorp officially maintains and signs packages for the following Linux distributions.
Add the HashiCorp GPG key.
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
Add the official HashiCorp Linux repository.
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
Architecture: If the underlying architecture is a 64-bit ARM processor, replace [arch=amd64]
with [arch=arm64]
to run the above command.
Update and install.
sudo apt-get update && sudo apt-get install vault
NOTE: To install Vault Enterprise, replace install vault
with install vault-enterprise
.
TIP: Now that you have added the HashiCorp repository, you can install Terraform, Consul, Nomad and Packer with the same command.
Verifying the Installation
After installing Vault, verify the installation worked by opening a new terminal session and checking that the vault
binary is available. By executing vault
, you should see help output similar to the following:
vault