I use kde.repo file with following content as example on this guide:
[kde]
name=kde
mirrorlist=http://apt.kde-redhat.org/apt/kde-redhat/fedora/mirrors-stable
gpgkey=http://apt.kde-redhat.org/apt/kde-redhat/kde-redhat.RPM-GPG-KEY
enabled=1
Remove YUM Repo (Repository) Permanently
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:
# rpm -qa |grep -i repo-name
For example:
# rpm -qa |grep -i rpmfusion
rpmfusion-nonfree-release-13-2.noarch
rpmfusion-free-release-13-2.noarch
If RPM-package found then simply remove whole RPM-package with following command:
# rpm -e some-repository-rpm-package
If RPM-package not found then simply remove repo file with following command:
# rm /etc/yum.repos.d/repo-file.repo
Disable YUM Repo (Repository)
# vim /etc/yum.repos.d/wandisco-svn.repo
enabled=0
Enable disabled repo quickly with YUM:
# yum --enablerepo=some-disabled-repository install some-package
Disable YUM Repo (Repository) using YUM:
# yum --disablerepo=some-repository install some-package
Reference:
http://www.if-not-true-then-false.com/2010/yum-remove-repo-repository-yum-disable-repo-repository/
No comments:
Post a Comment