How do I remove a repository of yum
Solution 1:
All the yum repos located at /etc/yum.repos.d/
. So, you can remove a repo with:
# rm -f /etc/yum.repos.d/c6-media.repo
Or temporary disable it with:
# yum --disablerepo=c6-media search ...
(Change enabled=1
to enabled=0
in c6-media.repo
for permanent)
Solution 2:
New in 6.0 or 6.1 (can't remember which off hand) is yum-config-manager, which you can use to disable a repo.:
yum-config-manager --disable c6-media