This is just a quick note to remind myself how to remove a Copr repository. What’s a Copr?

“Copr (Cool Other Package Repo) is a Fedora project to help make building and managing third party package repositories easy.” – https://fedoraproject.org/wiki/Category:Copr.

Why do I want to remove it? One of the Copr repo I added a while back seemed to be no longer working, so I wanted to remove it.

# dnf update --refresh
Failed to synchronize cache for repo 'tcg-themes', disabling.
Last metadata expiration check: 0:00:00 ago on Fri 08 Dec 2017 11:12:45 AM AEDT.
Dependencies resolved.
Nothing to do.
Complete!

To list all repos on Fedora (27):

# dnf repolist
Last metadata expiration check: 0:05:59 ago on Fri 08 Dec 2017 11:12:45 AM AEDT.
repo id                    repo name                                      status
*fedora                    Fedora 27 - x86_64                             54,801
google-chrome              google-chrome                                       3
tcg-themes                 Copr repo for themes owned by tcg                  23
*updates                   Fedora 27 - x86_64 - Updates                    6,420

To list just the Corp-repositories:

# dnf copr list
tcg/themes

And finally, to remove the above repo, tcg/themes:

# dnf copr remove tcg/themes
Repository successfully removed.
# dnf update
Last metadata expiration check: 5:18:23 ago on Fri 08 Dec 2017 11:12:45 AM AEDT.
Dependencies resolved.
Nothing to do.
Complete!

Ref: http://dnf-plugins-core.readthedocs.io/en/latest/copr.html