Linux – Client is not able to use Yum Server configured on Server under /home/RPMS file path

centos5linuxrpmyum

I have configured Yum Server on Server 10.0.0.1(Redhat 5.3)
All RPMS are here /home/RPMS/Server.

Now on another machine i have Centos 5.3 (10.0.0.30).I want to use yum Server of 10.0.0.1 on 10.0.0.3 as client.

So i did edit yum.conf file on client as

[b]
baseurl=ftp://10.0.0.1/home/RPMS/Server
gpgcheck=0

When i am passing command yum list then it is showing error.

[root@client30 ~]#  yum list
Repository 'b' is missing name in configuration, using id
ftp://10.0.0.1/home/RPMS/Server/repodata/repomd.xml: [Errno 4] IOError: [Errno ftp error] (113, 'No route to host')
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: b. Please verify its path and try again
[root@client30 ~]#

But if put RPMS on server under /var/ftp/pub/RPMS then ,evrything working fine.

I have already given 777 permission on server.

Kindly help what i can do so that client start using yum server configured on Server with the same file path.Actually size of / is small so i cant put files under /var/ftp/pub.

Kindly help

Best Answer

Repository 'b' is missing name in configuration

Define a name for your repo, something like this:

[b]
name=Local repo - $basearch
baseurl=ftp://10.0.0.x/home/RPMS/Server
enabled=1
gpgcheck=0

ftp://10.0.0.x/home/RPMS/Server/repodata/repomd.xml: [Errno 4] IOError: [Errno ftp error] (113, 'No route to host')

It seems caused by a firewall. Can you access this URL via web browser?