order of searching yum repositories and a local Yum server

"Ian Brown" <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
Hello,
  - I had created successfully a Yum server on my local LAN.

  - I have an FC7 client on this LAN.

  - I had added , in /etc/yum.repos.d/fedora.repo the follwoing line:
baseurl=ftp://192.168.0.131/pub/fedora/core/7/x86_64/os
and commented the original baseurl line in this file.

So the [fedora] section in fedora.repo looks like:
[fedora]
name=Fedora $releasever - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
baseurl=ftp://192.168.0.131/pub/fedora/core/7/x86_64/os
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
file:///etc/pki/rpm-gpg/RPM-GPG-KEY




where on ftp://192.168.0.131/pub/fedora/core/7/x86_64/os there are the
distro files
and 192.168.0.131 runs an FTP server.



When I ran from the client on this LAN:
yum -y install mc

I see that it starts with other mirrors;
it first says:
http://ftp.hostrino.com/pub/fedora/linux/releases/7/Everything/x86_64/os/repodata/primary.sqlite.bz2:
[Errno 4] Socket Error: timed out

and then installs mc from a different mirror.

So my question is: how to avoid from a mirror (as of course it is
quicker to install from a local LAN)

Regards,
Ian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.