H2S Forum

How to Add Repository in CentOS 7 & 6 Linux

To add a repo in CentOS 7 or 6 Linux operating system we can simply use the yum config manager. Here is the command:

yum-config-manager --add-repo= ***Add repo link***

Replace Add repo link with a link which wants to add ion the repository.

Suppose we want to use the above command to add the 7.4 repo of Centso thus the command will be

yum-config-manager --add-repo=http://vault.centos.org/centos/7.4.1708/extras/x86_64/