---
sidebar_position: 3
description: |-
  Learn how to install OpenTofu.
---

import DocCardList from "@theme/DocCardList";

# Installing OpenTofu

You can install OpenTofu via a wide range of methods. Please select your operating system and installation method:

<DocCardList
    items={[
        {
            type: "link",
            href: "alpine/",
            label: "Alpine Linux (.apk)",
            description: "Install OpenTofu from an .apk package directly.",
        },
        {
            type: "link",
            href: "deb/",
            label: "Debian Linux and derivatives (.deb)",
            description:
                "Install OpenTofu on Debian, Ubuntu, or any other .deb-based Linux distribution using your package manager.",
        },
        {
            type: "link",
            href: "bsd/",
            label: "FreeBSD",
            description:
                "Use OpenTofu without installation on FreeBSD.",
        },
        {
            type: "link",
            href: "fedora/",
            label: "Fedora",
            description: "Installing OpenTofu on Fedora.",
        },
        {
            type: "link",
            href: "rpm/",
            label: "RHEL and derivatives (.rpm)",
            description:
                "Install OpenTofu on RHEL, openSUSE, AlmaLinux, or any other .rpm-based Linux distribution using your package manager.",
        },
        {
            type: "link",
            href: "snap/",
            label: "Ubuntu Linux (Snap)",
            description:
                "Install OpenTofu on Ubuntu, Manjaro, or any other Linux distribution using Snap.",
        },
        {
            type: "link",
            href: "homebrew/",
            label: "MacOS or Linux (Homebrew)",
            description: "Install OpenTofu on MacOS or Linux using Homebrew.",
        },
        {
            type: "link",
            href: "windows/",
            label: "Windows",
            description: "Install OpenTofu on Windows.",
        },
        {
            type: "link",
            href: "docker/",
            label: "OCI container image",
            description:
                "Use official OCI container image available on GitHub Container Registry.",
        },
        {
            type: "link",
            href: "standalone/",
            label: "Standalone (Linux/MacOS/Windows/BSD)",
            description:
                "Use OpenTofu without installation on Linux, MacOS, Windows or FreeBSD.",
        },
    ]}
/>
