github.com/muratcelep/terraform@v1.1.0-beta2-not-internal-4/website/docs/cli/install/yum.html.md (about) 1 --- 2 layout: "downloads" 3 page_title: "Yum Packages for Red Hat Enterprise Linux, Fedora, and Amazon Linux" 4 sidebar_current: "docs-cli-install-yum" 5 description: |- 6 The HashiCorp Yum repositories contain distribution-specific Terraform packages for Red Hat Enterprise Linux, Fedora, and Amazon Linux systems. 7 --- 8 9 # Yum/DNF Packages for RHEL, CentOS, and Fedora 10 11 The primary distribution packages for Terraform are `.zip` archives containing 12 single executable files that you can extract anywhere on your system. However, 13 for easier integration with configuration management tools and other systematic 14 system configuration strategies, we also offer package repositories for 15 RedHat Enterprise Linux, Fedora, and Amazon Linux systems, which allow you to 16 install Terraform using the `yum install` or `dnf install` commands. 17 18 If you are instead using Debian or Ubuntu, you 19 might prefer to [install Terraform from our APT repositories](apt.html). 20 21 -> **Note:** The Yum repositories discussed on this page are generic HashiCorp 22 repositories that contain packages for a variety of different HashiCorp 23 products, rather than just Terraform. Adding these repositories to your 24 system will, by default, therefore make a number of other non-Terraform 25 packages available for installation. That might then mask the packages that are 26 available for some HashiCorp products in the main distribution repositories. 27 28 ## Repository Configuration 29 30 Before adding a repository you must determine which distribution you are using. 31 The following command lines refer to a placeholder variable `$release` which 32 you must replace with the appropriate value from the following list: 33 34 * Red Hat Enterprise Linux: `RHEL` 35 * Fedora: `fedora` 36 * Amazon Linux: `AmazonLinux` 37 38 If you are using a Yum-based distribution, add the repository using 39 `yum-config-manager` as follows: 40 41 ```bash 42 sudo yum install -y yum-utils 43 sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/$release/hashicorp.repo 44 ``` 45 46 If you are using a DNF-based distribution, add the repository using 47 `dnf config-manager` as follows: 48 49 ```bash 50 sudo dnf install -y dnf-plugins-core 51 sudo dnf config-manager --add-repo https://rpm.releases.hashicorp.com/$release/hashicorp.repo 52 ``` 53 54 In both cases, the Terraform package name is `terraform`. For example: 55 56 ```bash 57 yum install terraform 58 ``` 59 60 ## Supported Architectures 61 62 The HashiCorp Yum/DNF server currently has packages only for the `x86_64` 63 architecture, which is also sometimes known as `amd64`. 64 65 There are no official packages available for other architectures, such as 66 `aarch64`. If you wish to use Terraform on a non-`x86_64` system, 67 [download a normal release `.zip` file](/downloads.html) instead. 68 69 ## Supported Distribution Releases 70 71 The HashiCorp Yum server currently contains release repositories for the 72 following distribution releases: 73 74 * AmazonLinux 2 75 * Fedora 29 76 * Fedora 30 77 * Fedora 31 78 * Fedora 32 79 * Fedora 33 80 * RHEL 7 (and CentOS 7) 81 * RHEL 8 (and CentOS 8) 82 83 No repositories are available for other versions of these distributions or for 84 any other RPM-based Linux distributions. If you add the repository using 85 the above commands on other systems then you will see a 404 Not Found error. 86 87 Over time we will change the set of supported distributions, including both 88 adding support for new releases and ceasing to publish new Terraform versions 89 under older releases. 90 91 ## Choosing Terraform Versions 92 93 The HashiCorp Yum repositories contain multiple versions of Terraform, but 94 because the packages are all named `terraform` it is impossible to install 95 more than one version at a time, and `yum install` or `dnf install` will 96 default to selecting the latest version. 97 98 It's often necessary to match your Terraform version with what a particular 99 configuration is currently expecting. You can use the following command to 100 see which versions are currently available in the repository index: 101 102 ```bash 103 yum --showduplicate list terraform 104 ``` 105 106 You can select a specific version to install by including it in the 107 `yum install` command line, as follows: 108 109 ```bash 110 yum install terraform-0.14.0-2.x86_64 111 ``` 112 113 If you are using a DNF-based distribution, similar use `dnf` instead of `yum` 114 when following the above steps. 115 116 If your workflow requires using multiple versions of Terraform at the same 117 time, for example when working through a gradual upgrade where not all 118 of your configurations are upgraded yet, we recommend that you use the 119 official release `.zip` files instead of the Yum packages, so you can install 120 multiple versions at once and then select which to use for each command you 121 run.