Dnf config-manager --add-repo changed to addrepo

Hello out there:

Tried adding the brave repository with “dnf config-manager --add-repo”

I got the following error message ( it a german config )

Unbekanntes Argument “–add-repo” für Kommando “config-manager”
Unknown argument “–add-repo” for command “config-manager”

Looks like there have been changes for add-repo, but I can’t find any info about it.
Is there anybody out there who managed to install Brave browser in F41? I’m happy about every tip :- :laughing:

According to dnf5 config-manager --help the correct sub-command is just addrepo.


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

Unbekanntes Argument “https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo” für Kommando "addrepo
:wink:

AND :slight_smile:

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

quits with >>

Fehler in der hinzugefügten Repository-Konfigurationsdatei. Repository-Option kann nicht gesetzt werden “autorefresh=1”: Option “autorefresh” nicht gefunden

error in the added repository configuration file. Unable to set repository option “autorefresh=1”: Option “autorefresh” not found

The autorefresh is not an option that is supported by fedora dnf.
With dnf5 it reports an error for properties that are not known.
You will need to add the repo without that line in the file.

Fixed :slight_smile:

vim brave.repo

[brave-browser]
name=Brave Browser
enabled=1
baseurl=https://brave-browser-rpm-release.s3.brave.com/$basearch

and then >>

sudo dnf config-manager addrepo --from-repofile=./brave.repo
sudo dnf update --refresh
sudo dnf install brave-browser

thx for your input !!

You can also do, How to add repos on dnf5 - #10 by grumpey

1 Like

I would let the parameter -y away. So users have time to see the messages and what exactly is going on with the installation.

Otherwise thanks a lot for the feedback. It will help users to get used with dnf5. I will also tag it as it.

Added dnf5

:wink: … the “y” is due to my laziness