[Spacewalk-list] Best why to Sync Centos repo??

John Hodrien J.H.Hodrien at leeds.ac.uk
Wed Jun 24 11:44:29 UTC 2009


On Wed, 24 Jun 2009, Shaun Rampersad wrote:

> Thanks for the reply.
>
> I'm using the following entry in my yum repo file
>
> [Centos4-x86_64-base]
> name=CentOS-$releasever - Base
> #baseurl=http://centos.mirror.ac.za/4/os/x86_64/
> baseurl=http://mirror.ukhost4u.com/centos/4/os/x86_64/
> gpgcheck=1
> gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4
>
> I changed mirrors above to test if it was a problem with the mirror
>
> When I run the following command, it syncs 486 packages only
> #> reposync --repoid=Centos4-x86_64-base
>
> [Centos4-x86_64-base: 485   of 486   ] Skipping existing CentOS/RPMS/zlib-1.2.1.2-1.2.i386.rpm
> [Centos4-x86_64-base: 486   of 486   ] Skipping existing CentOS/RPMS/zlib-devel-1.2.1.2-1.2.i386.rpm
>
> Surely there has to be more than 486 packages on the mirror? The same happens with other repo's although they have different counts

So, I pull down http://mirror.ukhost4u.com/centos/4/os/x86_64/, strip the crud
off and...:

grep -v x86_64 index.html |wc -l
486

I'm guessing you're doing the reposync on a 32bit machine?

reposync --repoid=Centos4-x86_64-base --arch=x86_64

Perhaps?

jh

-- 
"There are many terrorist states in the world, but the United States is
  unusual in that it is officially committed to international terrorism, and on
  a scale that puts its rivals to shame."             -- Noam Chomsky




More information about the Spacewalk-list mailing list