How Do I Check If a Linux Repo Is Enabled?
Contents

Run command yum repolist and it will show you all repositories configured under YUM and enabled for use on that server. To view, disabled repositories or all repositories refer below section in this article. In the above output, you can see the repo list with repo id, repo name, and status.

How do I enable a repository in Linux?

To enable all repositories run “yum-config-manager –enable *“. –disable Disable the specified repos (automatically saves). To disable all repositories run “yum-config-manager –disable *”. –add-repo=ADDREPO Add (and enable) the repo from the specified file or url.

What is the command to viewing enabled repositories?

When successful, the yum-config-manager –enable command displays the current repository configuration.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest