On 03/21/11 18:11, Wes Hardin wrote:
On 03/21/2011 04:44 PM, Gary Algier wrote:
> I am trying to add the EPEL 6 repo. I used these commands:
>
> cobbler repo add --name=epel-6-x86_64 \
> --mirror=http://download.fedora.redhat.com/pub/epel/6/x86_64/
> cobbler reposync
>
> and it fails on the reposync. Running the reposync manually just like cobbler
> reposync does, I see:
>
> yum.Errors.NoMoreMirrorsRepoError: failure:
>
repodata/6c1a4a2b29a529a44b5fb644759bd34d737776b838b7a311e915fefcdf12f571-primary.sqlite.bz2
> from epel-6-x86_64: [Errno 256] No more mirrors to try.
I saw this a couple weeks ago as well. You may notice that the hash at the
beginning of the repodata files' names is a little bit longer. It would appear
that yum has once again changed the default hash algorithm, this time from sha1
to sha256.
I would think you could use an rsync breed repo, but if you've got createrepo
updating the existing cache instead of creating a new cache, I would expect this
to fail as well. Or maybe it'll just write sha1 hashed files in addition to the
sha256 hashed files. Haven't had to time to play around with this much yet, so
I'd be interested to know what you find out.
I managed to get this working using rsync.
It turns out that after the rsync, a reposync will rebuild the local yum repo
information so Cobbler will be happy.
However, all I wanted was a subset of the repo (I wanted func, but not the
rest of EPEL). The solution to this was to create "epel-6-x86_64" as an rsync
repo with everyting then create "func-6-x86_64" as only the three packages I
need (func, smolt, certmaster) and have it use the previously synced
epel-6-x86_64 as the mirror (sort of like a recursive call).
I now can install func automatically yet not install newer versions of other
packages.
Thanks for the rsync tip.
--
Gary Algier, WB2FWZ gaa at
ulticom.com +1 856 787 2758
Ulticom Inc., 1020 Briggs Rd, Mt. Laurel, NJ 08054 Fax:+1 856 866 2033
Nielsen's First Law of Computer Manuals:
People don't read documentation voluntarily.