order of searching yum repositories and a local Yum server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxxxxx
https://lists.dulug.duke.edu/mailman/listinfo/yum

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux