To configure an access to a remote repository, create the /etc/yum.repos.d/remote.repo file and add the following lines:

[base]
name=CentOS-$releasever - Base
baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
enabled=1