github.com/pulumi/terraform@v1.4.0/website/docs/cli/install/apt.mdx (about) 1 --- 2 page_title: APT Packages for Debian and Ubuntu 3 description: >- 4 The HashiCorp APT repositories contain distribution-specific Terraform 5 packages for both Debian and Ubuntu systems. 6 --- 7 8 # APT Packages for Debian and Ubuntu 9 10 The primary distribution packages for Terraform are `.zip` archives containing 11 single executable files that you can extract anywhere on your system. However, 12 for easier integration with configuration management tools and other systematic 13 system configuration strategies, we also offer package repositories for 14 Debian and Ubuntu systems, which allow you to install Terraform using the 15 `apt install` command or any other APT frontend. 16 17 If you are instead using Red Hat Enterprise Linux, CentOS, or Fedora, you 18 might prefer to [install Terraform from our Yum repositories](/cli/install/yum). 19 20 -> **Note:** The APT repositories discussed on this page are generic HashiCorp 21 repositories that contain packages for a variety of different HashiCorp 22 products, rather than just Terraform. Adding these repositories to your 23 system will, by default, therefore make several other non-Terraform 24 packages available for installation. That might then mask some packages that 25 are available for some HashiCorp products in the main Debian and Ubuntu 26 package repositories. 27 28 ## Repository Configuration 29 30 Please follow the instructions in the [Official Packaging Guide](https://www.hashicorp.com/official-packaging-guide). 31 32 ## Supported Architectures 33 34 The HashiCorp APT server has packages only for the `amd64` 35 architecture, which is also sometimes known as `x86_64`. 36 37 There are no official packages available for other architectures, such as 38 `arm64`. If you wish to use Terraform on a non-`amd64` system, 39 [download a normal release `.zip` file](/downloads) instead. 40 41 ## Supported Debian and Ubuntu Releases 42 43 The HashiCorp APT server contains release repositories for a variety of 44 supported distributions, which are outlined in the [Official Packaging Guide](https://www.hashicorp.com/official-packaging-guide). 45 46 47 ## Choosing Terraform Versions 48 49 The HashiCorp APT repositories contain multiple versions of Terraform, but 50 because the packages are all named `terraform` it is impossible to install 51 more than one version at a time, and `apt install` will default to selecting 52 the latest version. 53 54 It's often necessary to match your Terraform version with what a particular 55 configuration is currently expecting. You can use the following command to 56 see which versions are currently available in the repository index: 57 58 ```bash 59 apt policy terraform 60 ``` 61 62 There may be multiple package releases for a particular Terraform version if 63 we need to publish an updated package for any reason. In that case, the 64 subsequent releases will have an additional suffix, like `0.13.4-2`. In these 65 cases, the Terraform executable inside the package should be unchanged, but its 66 metadata and other contents may be different. 67 68 You can select a specific version to install by including it in the 69 `apt install` command line, as follows: 70 71 ```bash 72 sudo apt install terraform=0.14.0 73 ``` 74 75 If your workflow requires using multiple versions of Terraform at the same 76 time, for example when working through a gradual upgrade where not all 77 of your configurations are upgraded yet, we recommend that you use the 78 official release `.zip` files instead of the APT packages, so you can install 79 multiple versions at once and then select which to use for each command you 80 run.