F41 KDE: I cannot install Brave Browser

I would like to install Brave Browser, but the instructions suggested by the site do not work:

sudo dnf install dnf-plugins-core

sudo dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo

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

sudo dnf install brave-browser

Perhaps the problem is due to a syntax change in DNF5. How can I solve the problem?

Woops, posted the instructions for brave beta. The correct way is to replace the second line with sudo dnf config-manager addrepo --from-repofile=https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo.

yep

1 Like

What did it say, and which of the 4 lines failed?

@katflap
With:
sudo dnf config-manager addrepo --from-repofile=https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo

The 4th line…

sudo dnf -y install brave-browser

…gives “error” and i had to return at dnf4 syntax.

I didn’t have any problems to install Mullvad Browser with:
sudo dnf config-manager addrepo --from-repofile=https://repository.mullvad.net/rpm/stable/mullvad.repo

and

sudo dnf install mullvad-browser

I just tried the line I gave you, and it does indeed give me an error: Error in added repository configuration file. Cannot set repository option "autorefresh=1": Option "autorefresh" not found. Weird, this used to work.

Anyway, your dnf4 solution does the trick. Alternatively this worked for me just now:
sudo dnf config-manager addrepo --id=brave-browser --set=name='Brave Browser' --set=baseurl='https://brave-browser-rpm-release.s3.brave.com/$basearch'.

There is a bug report about this, hopefully it will be fixed soon.

2 Likes

Solved!

sudo su -

dnf -y install dnf-plugins-core

dnf config-manager addrepo --id=brave-browser --set=name='Brave Browser' --set=baseurl='https://brave-browser-rpm-release.s3.brave.com/$basearch'

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

dnf -y install brave-browser