Tell me more ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I setup the FTP server on Machine A 192.168.1.105 and created the YUM repo. And placed following contents in it.

#vi rhel-localftp.repo

[rhel-localftp.rep]
name=bla bla bla
baseurl=file:///var/ftp/pub/Server(RPMs are under Server folder)
enabled=1
gpgcheck=0

then installed httpd everything worked fine on Machine A.

Now turn of Machine B 192.168.1.106

I created the repository to access the RPMs from Machine A and contents are

#vi remoteftp.repo

[rhel-remoteftp.rep]
name=bla bla bla
baseurl=ftp://192.168.1.105/var/ftp/pub/Server
enabled=1
gpgcheck=0

and then i tried to install package and it gave me this error

Note: There is no Firewall in between them

enter image description here

Do i have to install FTP server also on Machine B

share|improve this question
Do you have repodata/repmod.xml in Server directory? – pbm Feb 26 at 20:33
Yes it is there.... /etc/ftp/pub/Server/repodata/repmod.xml – OmiPenguin Feb 27 at 8:05
1  
Is the FTP server started on machine A? – Jenny D Feb 27 at 9:15
Damn, something is wrong with FTP server itself. It was running but when I restarted everything started working. – OmiPenguin Feb 27 at 9:27

1 Answer

Since default home directory for ftp is /var/ftp/pub so there is no need to provide "/var/ftp" in "baseurl" parameter.

baseurl=ftp://192.168.1.105/var/ftp/pub/Server  # WRONG

baseurl=ftp://192.168.1.105/pub/Server          # Correct

Also make sure , you are able to connect ftp server , so you can just check using ftp server-ip to check connectivity.

share|improve this answer
Ok this time i just used baseurl=192.168.1.105/pub/Server but got the same error – OmiPenguin Feb 27 at 7:55
are you able to browse same ftp url from your browser in client end ? – Rahul Patil Feb 27 at 8:30
No not even from Browser. I tried both 192.168.1.105 and 192.168.1.105/pub/Server but no use – OmiPenguin Feb 27 at 9:19
Rahul, there was problem with the FTP server itself I restarted it now its working. But thanks for giving me correct information about baseurl and how to use it. – OmiPenguin Feb 27 at 9:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.