Can't install Brave on Linux Fedora 41

Description of the issue:

Errors appearing when following the steps for Brave installation on Fedora linux 41. After executing sudo dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo the output is:

Unknown argument “–add-repo” for command “config-manager”

I tried using the new syntax which might be sudo dnf config-manager addrepo --from-repofile=https://brave-browser-rpm-release.s3.brave.com/brave-browser.repoNow it seems that it downloads the file correctly but a diffrent error outputs:

Error in added repository configuration file. Cannot set repository option “autorefresh=1”: Option “autorefresh” not found

It’s weird since option “autorefresh=1” is clearly stated in brave-browser.repo file

How can this issue be reproduced?

  1. Go to https://brave.com/linux/
  2. Follow the steps for Fedora installation
  3. Open terminal in Fedora 41
  4. Execute command sudo dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo

Expected result:
Errors not occuring.

Hi,

I was installing and follow this workaround to install Brave on Fedora 41 (until they fix the guide on oficial page) that’s bring the new DNF5

The dnf config-manager option on this Fedora release (dnf5) was change from --add-repo to addrepo and it doesn’t recognize the option autorefresh=1 on .repo file.

Change the second step on https://brave.com/linux/#fedora-rockyrhel

Download the file: https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo

  • Remove the line: autorefresh=1

  • run (on the same path that download and edit the file):
    sudo dnf config-manager addrepo --from-repofile=./brave-browser.repo

And follow the rest of the steps in the guide

sudo rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc

sudo dnf install brave-browser

Try these steps instead:

  1. Create the Brave repository file manually:
    Open a terminal and use a text editor (e.g., nano) to create a new repo file:

    sudo nano /etc/yum.repos.d/brave-browser.repo
    
  2. Add the following content to the file and save it:

    [brave-browser]
    name=Brave Browser
    baseurl=https://brave-browser-rpm-release.s3.brave.com/x86_64/
    enabled=1
    gpgcheck=1
    gpgkey=https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
    
  3. Install Brave:
    Update the package list and install Brave:

    sudo dnf update
    sudo dnf install brave-browser
    

After installation, you should be able to launch Brave from your applications menu or by running:

brave-browser