Enable/Disable repo with dnf

Michael Cronenworth mike at cchtml.com
Thu Jul 23 17:31:35 UTC 2015


On 07/23/2015 10:44 AM, luigi.vtt at gmail.com wrote:
> I'm trying to enable the fedora-source and updates-source repos, using
> this command:
>
> sudo dnf --enablerepo=fedora-source repolist
>
> The result of the command is that the fedora-source seems enabled
> (it has a * in front of its name) but there is no
> fedora-source.repo in/etc/yum.repos.d/
>
> Can anyone say me how to proceed?

$ grep fedora-source /etc/yum.repos.d/*.repo
/etc/yum.repos.d/fedora.repo:[fedora-source]
/etc/yum.repos.d/fedora.repo:mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-$releasever&arch=$basearch

;)

Multiple repos may be contained in a single repo file.

Regards,
Michael



More information about the users mailing list