- Move the default yum repository to another folder
mv /etc/yum.repos.d/*.repo /tmp/
- Create and edit a new config file
sudo nano /etc/yum.repos.d/remote.repo
- Add the following in the file
[remote]
name=RHEL Apache
baseurl=http://192.168.1.10
enabled=1
gpgcheck=0
- Test the configuration by running the following command
sudo yum install pkg-name