From 3f5646c47fa85c7235bd8fe465924207480af141 Mon Sep 17 00:00:00 2001 From: Bruno Schaatsbergen Date: Sun, 10 Nov 2024 18:09:39 -0700 Subject: [PATCH] docs: update `dnf config-manager` usage In Fedora Linux 41, which uses DNF5, backward compatibility with DNF4 was intentionally broken. The method for adding repositories via dnf config-manager has changed to use new sub-commands, such as addrepo. Signed-off-by: Bruno Schaatsbergen git@bschaatsbergen.com --- website/docs/cli/install/yum.mdx | 2 +- website/docs/language/stacks/reference/tfstacks-cli.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/cli/install/yum.mdx b/website/docs/cli/install/yum.mdx index b6b4b809705d..96e557ee279a 100644 --- a/website/docs/cli/install/yum.mdx +++ b/website/docs/cli/install/yum.mdx @@ -47,7 +47,7 @@ If you are using a DNF-based distribution, add the repository using ```bash sudo dnf install -y dnf-plugins-core -sudo dnf config-manager --add-repo https://rpm.releases.hashicorp.com/$release/hashicorp.repo +sudo dnf config-manager addrepo --from-repofile=https://rpm.releases.hashicorp.com/$release/hashicorp.repo ``` In both cases, the Terraform package name is `terraform`. For example: diff --git a/website/docs/language/stacks/reference/tfstacks-cli.mdx b/website/docs/language/stacks/reference/tfstacks-cli.mdx index 8d7d8f6e22cf..48a4892f6c04 100644 --- a/website/docs/language/stacks/reference/tfstacks-cli.mdx +++ b/website/docs/language/stacks/reference/tfstacks-cli.mdx @@ -54,7 +54,7 @@ Run the following commands to install the `terraform-stacks-cli` using Fedora. ```shell-session $ sudo dnf install -y dnf-plugins-core -$ sudo dnf config-manager --add-repo https://rpm.releases.hashicorp.com/fedora/hashicorp.repo +$ sudo dnf config-manager addrepo --from-repofile=https://rpm.releases.hashicorp.com/fedora/hashicorp.repo $ sudo dnf -y install terraform-stacks-cli ```