Why doesn't reposync work for me?

James Antill james at fedoraproject.org
Thu Nov 6 04:56:12 UTC 2014


On Tue, 2014-11-04 at 14:41 -0800, CLOSE Dave wrote:
> James Antill wrote:
> 
> >> I've been running reposync hourly for the last several months, mostly
> >> because the corporate firewall blocks rsync. My local repo has quite a
> >> few packages but nowhere near all that it should have. I'm wondering why
> >> not.
> >>
> >> The machine running reposync has x86_64 architecture but the repo I'm
> >> trying to fill is for i386 machines. (I'm also running reposync for
> >> x86_64 and that seems to be working fine.) Here's the command sequence
> >> I'm running.
> >>
> >> # /usr/bin/reposync -n -a i386 -r updates -p /data/yum-mirrors/i386
> 
> >   -a should be the highest arch, so you want at least i686.
> 
> I've tried that. It appears to me that the -a argument identifies the 
> repository to be accessed. When I tried i686, nothing was found because 
> I don't have a .repo file for that. Note that fedoraproject.org doesn't 
> list any mirrors for i686, only for i386.

 The only thing the -a (or --arch) option does is affect this line:

        arches = rpmUtils.arch.getArchList(opts.arch)

...which tells yum which arches are to use for packages:

In [2]: rpmUtils.arch.getArchList('i386')
Out[2]: ['i386', 'noarch']

In [3]: rpmUtils.arch.getArchList('i686')
Out[3]: ['i686', 'i586', 'i486', 'i386', 'noarch']

...note that this doesn't set arch/basearch, in fact AFAICS there is no
way to set basearch for reposync via. an option. So you'll really want
to run:

setarch i686 reposync -n -r updates -p /data/yum-mirrors/i386



More information about the Yum-devel mailing list