Quick guide, howto remove and disable YUM repo (repository). Yum command itself does not contain any way to remove the repository. YUM repo files is located in /etc/yum.repos.d/ directory.
I use kde.repo file with following content as example on this guide:
Before moving repository permanently is a good idea to check that is the repository installed using rpm package. As many repos usually are, like RPM-Fusion, Livna, etc.
Search Repository RPM-package with following command:
If RPM-package found then simply remove whole RPM-package with following command:
rpm -e some-repository-rpm-package
Example:
rpm -e livna-release-1-1.noarch
If RPM-package not found then simply remove repo file with following command:
rm/etc/yum.repos.d/repo-file.repo
## OR just rename it (without repo file extension) ##mv/etc/yum.repos.d/repo-file.repo /etc/yum.repos.d/repo-file.repo.bak
Example:
rm/etc/yum.repos.d/kde.repo
## OR just rename it (without repo file extension) ##mv/etc/yum.repos.d/kde.repo /etc/yum.repos.d/kde.repo.bak
Disable YUM Repo (Repository)
Disable YUM Repo
Edit repo file on /etc/yum.repos.d/ as root and change enabled to 0