diff --git a/website/docs/cli/install/apt.mdx b/website/docs/cli/install/apt.mdx index 61c9513145..6a2cba83bb 100644 --- a/website/docs/cli/install/apt.mdx +++ b/website/docs/cli/install/apt.mdx @@ -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 diff --git a/website/docs/cli/install/yum.mdx b/website/docs/cli/install/yum.mdx index 245ed852b5..f7f0c9da97 100644 --- a/website/docs/cli/install/yum.mdx +++ b/website/docs/cli/install/yum.mdx @@ -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 diff --git a/website/docs/intro/install.mdx b/website/docs/intro/install.mdx new file mode 100644 index 0000000000..7920881ad6 --- /dev/null +++ b/website/docs/intro/install.mdx @@ -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 +```