Installing OpenTofu on RHEL, openSUSE, AlmaLinux and other RPM-based distributions
Thank you to for sponsoring the OpenTofu package hosting.
You can install OpenTofu from our RPM repository by following the step-by-step instructions below.
You can use the OpenTofu installer script to run the installation.
The following steps explain how to set up the OpenTofu RPM repositories. These instructions should work on most RPM-based Linux systems.
- Yum (RHEL/AlmaLinux/etc.)
- Zypper (openSUSE)
Create the /etc/yum.repos.d/opentofu.repo
file by running the following command:
Create the /etc/zypp/repos.d/opentofu.repo
file by running the following command:
Now you install OpenTofu by running:
- Yum (RHEL/AlmaLinux/etc)
- Zypper (openSUSE)