Junk Food for the Brain

Open Source and Awesomesauce :)

Temporarily Disable a Yum Repository

| Comments

Sometimes, you may run into problems updating Fedora via yum. What you could do is temporarily disable the offending repository, and update everything else while the errors are being fixed upstream.

  1. List out your enabled yum repositories.
$ yum repolist

You would get something like this:

[raja@atreides ~]$ yum repolist
Loaded plugins: fastestmirror, presto, refresh-packagekit
repo id                   repo name                              status
adobe-linux-i386          Adobe Systems Incorporated             enabled:     17
chromium                  Chromium Test Packages                 enabled:      7
fedora                    Fedora 11 - i386                       enabled: 13,289
rpmfusion-free            RPM Fusion for Fedora 11 - Free        enabled:    377
rpmfusion-free-updates    RPM Fusion for Fedora 11 - Free - Upda enabled:    210
rpmfusion-nonfree         RPM Fusion for Fedora 11 - Nonfree     enabled:    110
rpmfusion-nonfree-updates RPM Fusion for Fedora 11 - Nonfree - U enabled:    115
updates                   Fedora 11 - i386 - Updates             enabled:  3,451
repolist: 17,576
  1. The names on the left are the repo ids. To disable a particular one, for example rpmfusion-nonfree-updates while doing updates, run your yum like this:-
# yum upgrade --disablerepo=rpmfusion-free-updates
  1. This will help you upgrade the rest of the packages in the mean time.