How to enable a DNF repository?

To enable a DNF repository, you can use the following command:

sudo dnf config-manager --set-enabled repository-name

Replace repository-name with the actual name of the repository you want to enable.

Alternatively, you can manually edit the repository configuration file located in /etc/yum.repos.d/. Open the relevant .repo file and set enabled=1 for the repository you wish to enable. For example:

[repository-name]
name=Repository Name
baseurl=http://example.com/repo
enabled=1

After making changes, save the file. The repository will be enabled the next time you run a DNF command.

If you have any more questions, feel free to ask!

0 Comments

no data
Be the first to share your comment!