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:
Example:
Example:
Example:
Example:
Enable disabled repo quickly with YUM:
Example:
0
1
2
3
4
5
6
|
[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:
0
1
2
|
rpm -qa |grep -i rpmfusion
rpmfusion-nonfree-release-13-2.noarch
rpmfusion-free-release-13-2.noarch
## OR ##
rpm -qa |grep -i livna
livna-release-1-1.noarch
|
If RPM-package found then simply remove whole RPM-package with following command:
0
1
2
|
0
1
2
|
If RPM-package not found then simply remove repo file with following command:
0
1
2
3
4
5
|
0
1
2
3
4
5
|
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
0
1
2
3
4
5
6
|
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
0
1
2
|
Disable YUM Repo (Repository) using YUM
0
1
2
|
Comments
Post a Comment