mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-25 16:31:10 -06:00
Add installation instructions. (#730)
Signed-off-by: Jakub Martin <kubam@spacelift.io>
This commit is contained in:
parent
03c8f6cebd
commit
fb81566cdd
@ -6,6 +6,12 @@ description: >-
|
||||
|
||||
# APT Packages for Debian and Ubuntu
|
||||
|
||||
:::danger Warning
|
||||
The instructions below are out of date and will be updated as OpenTofu starts distributing Linux packages. Please follow the [relevant issue](https://github.com/opentofu/opentofu/issues/567) in the OpenTofu repository.
|
||||
|
||||
In the meantime, see currently available installation instructions [here](/docs/intro/install).
|
||||
:::
|
||||
|
||||
The primary distribution packages for OpenTofu are `.zip` archives containing
|
||||
single executable files that you can extract anywhere on your system. However,
|
||||
for easier integration with configuration management tools and other systematic
|
||||
|
@ -7,6 +7,12 @@ description: >-
|
||||
|
||||
# Yum/DNF Packages for RHEL, CentOS, and Fedora
|
||||
|
||||
:::danger Warning
|
||||
The instructions below are out of date and will be updated as OpenTofu starts distributing Linux packages. Please follow the [relevant issue](https://github.com/opentofu/opentofu/issues/567) in the OpenTofu repository.
|
||||
|
||||
In the meantime, see currently available installation instructions [here](/docs/intro/install).
|
||||
:::
|
||||
|
||||
The primary distribution packages for OpenTofu are `.zip` archives containing
|
||||
single executable files that you can extract anywhere on your system. However,
|
||||
for easier integration with configuration management tools and other systematic
|
||||
|
45
website/docs/intro/install.mdx
Normal file
45
website/docs/intro/install.mdx
Normal file
@ -0,0 +1,45 @@
|
||||
---
|
||||
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
|
||||
```
|
Loading…
Reference in New Issue
Block a user