You can connect to FTP Location also. For testing purpose, we have created FTP Location at ftp://10.0.0.1/pub/ Using following simple steps you can connect yum to FTP location.
.
1. Create a new file /etc/yum.repos.d/myftp.repo or edit the old file and append following lines in that file. We are going to create new file.
# nano /etc/yum.repos.d/myftp.repo
[MyFTPRepo]
name=Software on Remote Site
baseurl=ftp://10.0.0.1/pub/
enabled=1
gpgcheck=0
2. Run following commands.
# yum clean all
# yum repolist
3. That’s All ! You did it.