Skip to main content

Installing OpenTofu from GitHub Releases

Using the installer script

# Download the installer script:
curl --proto '=https' --tlsv1.2 -fsSL -o
# Alternatively: wget --secure-protocol=TLSv1_2 --https-only -O

# Grant execution permissions:
chmod +x

# Please inspect the downloaded script at this point.

# Run the installer:
./ --install-method standalone

# Remove the installer:

Using OpenTofu as a standalone binary

You can run OpenTofu without installation as a standalone binary. You can download the latest release for your operating system from the GitHub releases page, unpack the zip and start using it. For easier updates, we recommend using the non-portable packaged versions for your operating system.

Community-supported Architectures

Download the latest binary for ppc64le here.. Contact the ppc64le maintainer for issues related to this binary.

Verify the file integrity

Please download the tofu_YOURVERSION_SHA256SUMS file from the release. This file contains the SHA256 checksums for all files. You can verify the integrity of your file by running:

CHECKSUM=$(sha256sum "${ZIPFILE}" | cut -f 1 -d ' ')
EXPECTED_CHECKSUM=$(grep "${ZIPFILE}" tofu_*_SHA256SUMS | cut -f 1 -d ' ')
if [ "${CHECKSUM}" = "${EXPECTED_CHECKSUM}" ]; then
echo "OK"

Verifying the binaries with Cosign

After you have verified the checksums, you can verify the integrity of the checksum file itself with Cosign. Please make sure you have installed Cosign and download the tofu_YOURVERSION_SHA256SUMS.pem and tofu_YOURVERSION_SHA256SUMS.sig files for your release. You can then run the integrity verification:

OPENTOFU_VERSION_MAJORMINOR="Add your OpenTofu major and minor version here"
# For alpha and beta builds use /main
cosign \
verify-blob \
--certificate-identity "${IDENTITY}" \
--signature "tofu_*.sig" \
--certificate "tofu_*.pem" \
--certificate-oidc-issuer "" \