DNF - Enabling Repo's

How does one permanently enable a repo in dnf. I want to enable the contrib and contrib update repo’s. I know that I can enable a repo under dnfdragora, but that disappears after I close dnfdragora.

Chris

1 Like
$ sudo dnf config-manager --set-enabled cooker-x86_64-contrib
$ sudo dnf config-manager --set-enabled cooker-updates-x86_64-contrib
1 Like

ngompa: Thanks a lot. That did the trick.

Chris

1 Like

The below are informational “How To’s” which I wrote before I became familiar with the ‘sudo dnf config-manager --set-enabled/disabled’ command.

https://forum3.openmandriva.org/t/how-and-why-to-edit-repositories-for-dnf-lx-4-0-and-cooker/2246

https://forum3.openmandriva.org/t/how-to-edit-dnf-repositories-for-a-specific-mirror-lx-4-0-alpha-beta-and-cooker/2313

And just for fun:

https://forum3.openmandriva.org/t/how-to-use-dnf-lx-4-0-and-cooker/2305

1 Like

Thanks Ben, I hope that all this information will make its way into our dnf wiki.

Chris

1 Like

I believe I should rewrite the one about editing repos. Though in fairness that one was written with Cooker in mind and the weird (IMO unnecessary) habit we have of including release repos that do not exist yet. Or maybe retitle it and write a new one.

That seems like a good idea.

1 Like