What it technically do? Just move/edit .repo files to/in /etc/yum.repos.d? I ask because Fedora Linux Docs says:
“2. Add the newly created repository. dnf config-manager --add-repo repository
Where repository is the path to the created .repo file, for example: dnf config-manager --add-repo /etc/yum.repos.d/fedora_extras.repo”
And I can’t understand, why I have to use config-manager if .repo is already in /etc/yum.repos.d?
What the following means? “If it has to be added into installroot, combine it with --setopt=reposdir=/<installroot>/etc/yum.repos.d command-line option.”
You can edit the .repo file directly instead of using dnf config-manager. The latter is often just more quicker when you’re writing quick documentation. For example, adding a copr repo is a one-liner vs telling someone to create a file with vim/nano. But it’s safe to edit the .repo file directly if that’s your preference.
Yup, in that case there’s nothing to do since it already exists. You could do things like update the repo options and it should edit that file with the correct corresponding option for you, but you can also use vim to accomplish the same thing.
Can I do that? According man page config manager can just move .repo file correct path, make .repo file template if you give baseurl or enable/disable repo (edit enabled key in repo file). I dont see any way to edit repo options.
Would be really nice if a participant of this discussion could add relevant info to the Quick Docs article. You can either use the online editor to add / modify the article directly or use the ticket system to suggest a text addition or change, providing an as concrete wording as possible.
We can only improve our Fedora if we systematically share our experiences with each other.
Hi again, I noticed this in the docs:
Add (and enable) the repo from the specified file or url. If it has to be added into installroot, combine it with --setopt=reposdir=//etc/yum.repos.d command-line option.”
So, if I understand right, --add-repo also enable the spesified repo. Although the example command in the documentation is poor it seems to do something.
BUT, when I tested use --add-repo flag to enable repo file, it didn’t work