Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  1. Disable YUM Repo (Permanent)

All repo are stored in /etc/yum.repos.d/ Edit this file as root and change enabled to 0

## Change
enabled=1

## To
enabled=0
  1. Disable YUM Repo using YUM (Temporary)

    yum install some-package --disablerepo=some-repository

Example :

sudo yum update --disablerepo=rpmfusion-free
  1. Enable disabled repo with YUM:

    yum install some-package --enablerepo=some-disabled-repository

Example :

sudo yum update --enablerepo=rpmfusion-free
  1. Disable YUM Repo (Permanent)

All repo are stored in /etc/yum.repos.d/ Edit this file as root and change enabled to 0

## Change
enabled=1

## To
enabled=0
  1. Disable YUM Repo using YUM (Temporary)

    yum install some-package --disablerepo=some-repository

Example :

sudo yum update --disablerepo=rpmfusion-free
  1. Enable disabled repo with YUM:

    yum install some-package --enablerepo=some-disabled-repository

Example :

sudo yum update --enablerepo=rpmfusion-free

Note : you can disable or enable one or more repo just using comma :

sudo yum update --disablerepo=repo1,repo2,repo3,etc