Will this syntax work for CentOS-4? [base] name=CentOS-$releasever - Base baseurl=ftp://ftp.linux.ncsu.edu/pub/caoslinux/centos/$releasever/os/$basearch http://mirror.trouble-free.net/cAos/centos/$releasever/os/$basearch http://sunsite.utk.edu/ftp/pub/linux/caos/centos/$releasever/os/$basearch http://ibiblio.org/pub/linux/distributions/caoslinux/centos/$releasever/os/$basearch #released updates [update] name=CentOS-$releasever - Updates baseurl=ftp://ftp.linux.ncsu.edu/pub/caoslinux/centos/$releasever/updates/$basearch http://mirror.trouble-free.net/cAos/centos/$releasever/updates/$basearch http://sunsite.utk.edu/ftp/pub/linux/caos/centos/$releasever/os/$basearch http://ibiblio.org/pub/linux/distributions/caoslinux/centos/$releasever/os/$basearch #released updates [update] name=CentOS-$releasever - Updates baseurl=ftp://ftp.linux.ncsu.edu/pub/caoslinux/centos/$releasever/updates/$basearch http://mirror.trouble-free.net/cAos/centos/$releasever/updates/$basearch http://sunsite.utk.edu/ftp/pub/linux/caos/centos/$releasever/updates/$basearch http://ibiblio.org/pub/linux/distributions/caoslinux/centos/$releasever/updates/$basearch #packages used/produced in the build but not released [addons] name=CentOS-$releasever - Addons baseurl=ftp://ftp.linux.ncsu.edu/pub/caoslinux/centos/$releasever/addons/$basearch http://mirror.trouble-free.net/cAos/centos/$releasever/addons/$basearch http://sunsite.utk.edu/ftp/pub/linux/caos/centos/$releasever/addons/$basearch http://ibiblio.org/pub/linux/distributions/caoslinux/centos/$releasever/addons/$basearch #additional packages that may be useful [extras] name=CentOS-$releasever - Extras baseurl=ftp://ftp.linux.ncsu.edu/pub/caoslinux/centos/$releasever/extras/$basearch http://mirror.trouble-free.net/cAos/centos/$releasever/extras/$basearch http://sunsite.utk.edu/ftp/pub/linux/caos/centos/$releasever/extras/$basearch http://ibiblio.org/pub/linux/distributions/caoslinux/centos/$releasever/extras/$basearch
I apologize for my horrible typing. William Warren wrote:> Will this syntax work for CentOS-4? > > > [base] > name=CentOS-$releasever - Base > baseurl=ftp://ftp.linux.ncsu.edu/pub/caoslinux/centos/$releasever/os/$basearch > > http://mirror.trouble-free.net/cAos/centos/$releasever/os/$basearch > http://sunsite.utk.edu/ftp/pub/linux/caos/centos/$releasever/os/$basearch > http://ibiblio.org/pub/linux/distributions/caoslinux/centos/$releasever/os/$basearch > > > > #released updates > [update] > name=CentOS-$releasever - Updates > baseurl=ftp://ftp.linux.ncsu.edu/pub/caoslinux/centos/$releasever/updates/$basearch > > http://mirror.trouble-free.net/cAos/centos/$releasever/updates/$basearch > http://sunsite.utk.edu/ftp/pub/linux/caos/centos/$releasever/os/$basearch > http://ibiblio.org/pub/linux/distributions/caoslinux/centos/$releasever/os/$basearch > > > > #released updates > [update] > name=CentOS-$releasever - Updates > baseurl=ftp://ftp.linux.ncsu.edu/pub/caoslinux/centos/$releasever/updates/$basearch > > http://mirror.trouble-free.net/cAos/centos/$releasever/updates/$basearch > http://sunsite.utk.edu/ftp/pub/linux/caos/centos/$releasever/updates/$basearch > > http://ibiblio.org/pub/linux/distributions/caoslinux/centos/$releasever/updates/$basearch > > > > #packages used/produced in the build but not released > [addons] > name=CentOS-$releasever - Addons > baseurl=ftp://ftp.linux.ncsu.edu/pub/caoslinux/centos/$releasever/addons/$basearch > > http://mirror.trouble-free.net/cAos/centos/$releasever/addons/$basearch > http://sunsite.utk.edu/ftp/pub/linux/caos/centos/$releasever/addons/$basearch > > http://ibiblio.org/pub/linux/distributions/caoslinux/centos/$releasever/addons/$basearch > > > > #additional packages that may be useful > [extras] > name=CentOS-$releasever - Extras > baseurl=ftp://ftp.linux.ncsu.edu/pub/caoslinux/centos/$releasever/extras/$basearch > > http://mirror.trouble-free.net/cAos/centos/$releasever/extras/$basearch > http://sunsite.utk.edu/ftp/pub/linux/caos/centos/$releasever/extras/$basearch > > http://ibiblio.org/pub/linux/distributions/caoslinux/centos/$releasever/extras/$basearch > > _______________________________________________ > CentOS mailing list > CentOS@caosity.org > http://lists.caosity.org/mailman/listinfo/centos >
On Mon, 28 Mar 2005 18:55:08 -0500, William Warren <hescominsoon@emmanuelcomputerconsulting.com> wrote:> Will this syntax work for CentOS-4? >Did you try it? What does yum say if you try to use it?
On Mon, 2005-03-28 at 20:38 -0700, Greg Knaddison wrote:> On Mon, 28 Mar 2005 18:55:08 -0500, William Warren > <hescominsoon@emmanuelcomputerconsulting.com> 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