YUM/DNF Remove Repo – YUM/DNF Disable Repository - Comment Page: 1

Quick guide, howto remove and disable YUM/DNF repo (repository). Yum/DNF command itself does not contain any way to remove the repository. YUM and DNF repo files are located in /etc/yum.repos.d/ directory. [inttf_post_ad1] I use skype-stable.repo file with following content as example on this guide: [skype-stable] name=skype (stable) baseurl=https://repo.skype.com/rpm/stable/ enabled=1 gpgcheck=1 gpgkey=https://repo.skype.com/data/SKYPE-GPG-KEY Remove YUM/DNF Repo (Repository) Permanently Before deleting repository permanently is a good idea to check that is the repository installed using rpm package. As many repos usually are, like RPM-Fusion, Epel, etc. Search...

12 comments on “YUM/DNF Remove Repo – YUM/DNF Disable Repository - Comment Page: 1

    1. How can I remove all installed packages from a repository without listing each package?

      • 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 :)

      • Thanks! Wish I had found this 2 days ago.

    2. Thank you very much! Helped me a lot :)

    3. […] t to 'target' local repo, then look in /etc/yum.repos.d/ You can either delete the .repo file for the local entry or use one of the techiques discussed at http://www.if-not-true-then-false.co…po-repository/ […]

    4. 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”

    5. 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

      • Hi Desmond,

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


Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.