mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
46 lines
1.2 KiB
Plaintext
46 lines
1.2 KiB
Plaintext
---
|
|
sidebar_position: 1
|
|
description: |-
|
|
Learn how to install OpenTofu.
|
|
---
|
|
|
|
# Installing OpenTofu
|
|
|
|
## Installing via direct download
|
|
|
|
The most direct method to install OpenTofu is to download it from GitHub releases. Each GitHub release has an Assets section, where you can find the `zip` archive for your platform and download it.
|
|
|
|
Once you download a zip archive from there, you can unzip it and move the `tofu` binary into your $PATH, e.g. into `/usr/local/bin` on many Unix operating systems.
|
|
|
|
You could, for example, run these commands:
|
|
|
|
```bash
|
|
wget https://github.com/opentofu/opentofu/releases/download/v1.6.0-alpha2/tofu_1.6.0-alpha2_darwin_arm64.zip
|
|
unzip tofu_1.6.0-alpha2_darwin_arm64.zip
|
|
mv tofu /usr/local/bin/tofu
|
|
```
|
|
|
|
to install OpenTofu on an arm64 MacOS system.
|
|
|
|
You can find the latest GitHub release of OpenTofu [here](https://github.com/opentofu/opentofu/releases/latest).
|
|
|
|
## Installing on MacOS
|
|
|
|
### Homebrew
|
|
|
|
OpenTofu is available in the Homebrew Core repository, so you can install it by running:
|
|
|
|
```bash
|
|
brew install opentofu
|
|
```
|
|
|
|
## Installing on Linux
|
|
|
|
### Installing on Ubuntu (Snapcraft)
|
|
|
|
If you're on Ubuntu and using Snapcraft you can install OpenTofu by running:
|
|
|
|
```bash
|
|
snap install opentofu
|
|
```
|