DNF - Enabling Repo's

(Christopher Tanner) #1

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.


(Neal Gompa) #2
$ sudo dnf config-manager --set-enabled cooker-x86_64-contrib
$ sudo dnf config-manager --set-enabled cooker-updates-x86_64-contrib

(Christopher Tanner) #3

ngompa: Thanks a lot. That did the trick.


(Ben Bullard) #4

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

And just for fun:

(Christopher Tanner) #5

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


(Ben Bullard) #6

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.

(Ben Bullard) closed #7