If Not True Then False

YUM Remove Repo (Repository) – YUM Disable Repo (Repository) - Comment Page: 1

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...
Categories:
Tagged with:

11 Comments

Leave a Comment

Your email address will not be published. Required fields are marked *

Input your comment.
help

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Input your name.

JR

Hi Jonathon,

This is quick trick to remove all packages from yum repository:


yum --disablerepo="*" --enablerepo=google-chrome list available |grep "google-chrome" |awk -F ' ' '{print $1}' |xargs yum -y remove

Run first without |xargs yum -y remove to see what is really happening…and be careful anyway, as always with delete/remove commands :)

reply Reply
Peter

Thank you very much for your very clear illustrations and instructions. You certainly helped me to restore updates to Fedora20. On August 01st 2014, I had tried installing an image editor, but the installation failed and subsequently prevented Fedora20 from accessing updates. I searched the web for help but found nothing that worked until I found your excellent article today. Thanks very much again. “Much of the good things in life are indeed free”

reply Reply
Desmond Sackey

please can someone help me with the commands that can be use to disable repository during yum update and i have tryed using the commands povided here

reply Reply
JR

Hi Desmond,

Could you post some info what command you are running and what you see?

reply Reply