How to find reposotory ID of my repositories

How to find repository ID of my repositories. In order to disable repos I need to know the ID of the repo, but I can not find that. Does not help some fedora sites are not working now.

1 Like

The repository ID is the bits in the [] (square brackets) in the repository configuration files in /etc/yum.repos.d. From man dnf.conf:

The configuration file has INI format consisting of section declaration and name=value options below each on separate line. 
There are two types of sections in the configuration files: main and repository. Main section defines all global configuration options and should be only one.

The  repository  sections  define the configuration for each (remote or local) repository.
The section name of the repository in brackets serve as repo ID reference and should be unique across configuration files.
The allowed characters of repo ID string are lower and upper case alphabetic letters, digits, -, _, .  and :.
The minimal repository configuration file should aside from repo ID consists of baseurl, metalink or mirrorlist option  definition.

The ID is shown when you run dnf repolist:

$ cat /etc/yum.repos.d/_copr\\:flatcap\:neomutt.repo 
name=Copr repo for neomutt owned by flatcap

$ sudo dnf repolist
repo id                                                                                                                    repo name
adobe-linux-x86_64                                                                                                         Adobe Systems Incorporated                                                                       Copr repo for Takjuggler owned by ankursinha                                                           Copr repo for fedora-update-feedback owned by decathorpe                                                                             Copr repo for neomutt owned by flatcap
fedora                                                                                                                     Fedora 32 - x86_64
fedora-cisco-openh264                                                                                                      Fedora 32 openh264 (From Cisco) - x86_64
fedora-modular                                                                                                             Fedora Modular 32 - x86_64
google-chrome                                                                                                              google-chrome
rpmfusion-free                                                                                                             RPM Fusion for Fedora 32 - Free
rpmfusion-free-updates                                                                                                     RPM Fusion for Fedora 32 - Free - Updates
rpmfusion-nonfree                                                                                                          RPM Fusion for Fedora 32 - Nonfree
rpmfusion-nonfree-updates                                                                                                  RPM Fusion for Fedora 32 - Nonfree - Updates
updates                                                                                                                    Fedora 32 - x86_64 - Updates
updates-modular                                                                                                            Fedora Modular 32 - x86_64 - Updates

What do you mean by that? Are some repos not accessible? Can you please share the output of your dnf commands that suggests this?

1 Like

@FranciscoD thanks was not responding for some time. Now it is OK

There’s an infrastructure move going on, so most services will see some reduced performance.

However, this does not mean the repos will not work. If you experience that, please file a ticket with Fedora infrastructure here:

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.