On 11/17/2011 03:56 PM, Scott Mcdermott wrote:
> SL Users,
>
> I am wondering if anyone knows how to successfully
> mirror the Scientific Linux source repo? I.e. for
> things like "yumdownloader --source" to work?
>
> Here's what I have in the .repo file for the source,
> after distro installation:
>
> baseurl=http://ftp.scientificlinux.org/linux/scientific/$releasever/SRPMS/
> http://ftp1.scientificlinux.org/linux/scientific/$releasever/SRPMS/
> http://ftp2.scientificlinux.org/linux/scientific/$releasever/SRPMS/
> ftp://ftp.scientificlinux.org/linux/scientific/$releasever/SRPMS/
>
> but if we look we see:
>
> lftp ftp.scientificlinux.org:/linux/scientific/6.1/SRPMS> dir
> drwxr-xr-x 2 0 0 2048 Nov 17 20:52 repodata
> drwxr-xr-x 2 0 0 2048 Jul 26 16:52 repos
> drwxr-xr-x 2 0 0 10240 Oct 12 22:05 sl6-added
> drwxr-xr-x 2 0 0 10240 Jul 28 16:19 sl6-changed
> drwxr-xr-x 2 0 0 432128 Nov 17 20:51 vendor
>
> problem with this is that it's in three separate dirs the
> src.rpm files are not where expected, and thus I get
> metadata for it ('repodata/*.xml' are in correct location)
> when I mirror using 'reposync', but there's no actual
> packages because they aren't where they're supposed to be.
>
> This problem doesn't seem to affect the binary repositories.
> I am mirroring those without problems.
>
> Any ideas? Thanks.
>
I can't speak to the reposync issue, but I can recommend rsync for
mirroring the source repo (
http://www.scientificlinux.org/download/mirroring/mirror.rsync ).
As for yumdownloader --source , that seems to be working for me
$ yumdownloader --source gdm
Loaded plugins: refresh-packagekit
Enabling sl-source repository
gdm-2.30.4-21.el6_0.1.src.rpm | 2.7 MB 00:00
The repodata files know that they various RPMS are in sub directories
and reference them accordingly.
Pat
--
Pat Riehecky
Scientific Linux Developer