To disable a DNF repository, you can use the following command:
sudo dnf config-manager --set-disabled repository-name
Replace repository-name with the actual name of the repository you want to disable.
Alternatively, you can manually edit the repository configuration file located in /etc/yum.repos.d/. Open the relevant .repo file and set enabled=0 for the repository you wish to disable. For example:
[repository-name]
name=Repository Name
baseurl=http://example.com/repo
enabled=0
After making changes, save the file. The repository will be disabled the next time you run a DNF command.
If you need further assistance, feel free to ask!
