[Centos] yum.cong [sic] question

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



On Mon, 2005-03-28 at 20:38 -0700, Greg Knaddison wrote:
> On Mon, 28 Mar 2005 18:55:08 -0500, William Warren
> <hescominsoon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> > Will this syntax work for CentOS-4?
> 
> Did you try it?
> 
> What does yum say if you try to use it?

Good things to do before mailing to the list.  May also want to check
out http://www.catb.org/~esr/faqs/smart-questions.html; however, looks
to me like there is one thing wrong with the syntax - need whitespace
(tab or space[s]) at the front of each line of alternate URLs following
baseurl for each stanza.  [Not sure this is still correct - just tried a
test without whitespace and got no complaints from yum.  New yum may
have gotten more tolerant of this fine point of syntax.  Doesn't hurt in
any case.]

I will assume you have omitted the standard header stuff at the
beginning of /etc/yum.conf in your message.

Would also recommend importing GPG keys and adding the following to each
stanza:

failovermethod=priority
gpgcheck=1

failovermethod is optional, but without it order is random.  To get the
best advantage, may also want to run ping against each host in the list
and order entries by average response time - lowest to highest. The
following should be a single line - watch for wraps:

for host in ftp.linux.ncsu.edu mirror.trouble-free.net sunsite.utk.edu ibiblio.org; do ping -c 5 $host | egrep "(stat|avg)" ; done

I also like to break out each stanza into a .repo file
in /etc/yum.repos.d, for newer yum versions, but that's optional, and
requires changes - adding enabled=1 is advisable.

Phil



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux