メインコンテンツにスキップ

Alpine LinuxへのOpenTofuのインストール

OpenTofuは、Alpine Linuxテストリポジトリ、またはGitHubリリースページから.apkパッケージとして入手できます。

イン stalling using the installerインストーラーを使用したインストール

OpenTofuインストーラースクリプトを使用してインストールを実行できます。

コードブロック
# Download the installer script:
curl --proto '=https' --tlsv1.2 -fsSL https://get.opentofu.org/install-opentofu.sh -o install-opentofu.sh
# Alternatively: wget --secure-protocol=TLSv1_2 --https-only https://get.opentofu.org/install-opentofu.sh -O install-opentofu.sh

# Give it execution permissions:
chmod +x install-opentofu.sh

# Please inspect the downloaded script

# Run the installer:
./install-opentofu.sh --install-method apk

# Remove the installer:
rm -f install-opentofu.sh

.apkのインストール

.apkをダウンロードして、Alpine Linuxにインストールすることもできます。ダウンロードした.apkパッケージは、次のコマンドでインストールできます。

コードブロック
apk add --allow-untrusted tofu_*.apk

テストリポジトリからのインストール

現在、OpenTofuはAlpine Testingリポジトリで利用可能で、Alpine Stableにも近日中に追加される予定です。 Alpineのインストールをテストするには、次のコマンドを使用できます。

コードブロック
echo '@community https://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories
apk add opentofu@community