In some cases you may find that you need to disable or enable a specific yum repository for a single transaction. The following guide outlines how you may review the currently installed repositories, and then explains how to disable or enable a repository for a single yum transaction.
If you would like to learn how to disable or enable a yum repository for all transactions moving forward please review the following guide:
How do I enable or disable a repository?
Please keep in mind that the process of managing software with yum is a task that is best suited for a systems administrator with the skills, training, and expertise required to do so for you. Although this task is not related to cPanel we would like to offer the following guide as a courtesy.
Show Only Enabled Repositories:
yum repolist enabled
Show only Disabled Repositories
yum repolist disabled
Show all repositories, both disabled, and enabled:
yum repolist all
Enable A Repo
Enable a Repo from the Disabled List for a Single Transaction
yum --enablerepo="Repository Name From repolist disabled" install packagename
yum --enablerepo="Repository Name From repolist disabled" update packagename
Disable A Repo
Disable a Repo from the Enabled List for a Single Transaction
yum --disablerepo="Repository Name From repolist enabled" install packagename
yum --disablerepo="Repository Name From repolist enabled" update packagename