Thursday, May 14, 2015

[Centos] - Adding, Enabling and disabling repo in Centos

Adding repo

yum-config-manager --add-repo repository_url

* we also can add the repo by using rpm command. Here is the example.
Download the repo file. The repo file will be in .rpm, then install the repo files using this command:

rpm -ivh the_repo_filename.rpm

*The repo file will be installed at /etc/yum.repos.d


Disabling repo

yum-config-manager --disable repo_name

Enabling repo

yum-config-manager --enable repo_name

No comments:

Post a Comment