On Thu, Nov 17, 2011 at 11:13 PM, Pat Riehecky <[email protected]> wrote:

> 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://ftp.scientificlinux.org/linux/scientific/$releasever/SRPMS/>
>>             http://ftp1.scientificlinux.**org/linux/scientific/$**
>> releasever/SRPMS/<http://ftp1.scientificlinux.org/linux/scientific/$releasever/SRPMS/>
>>             http://ftp2.scientificlinux.**org/linux/scientific/$**
>> releasever/SRPMS/<http://ftp2.scientificlinux.org/linux/scientific/$releasever/SRPMS/>
>>             ftp://ftp.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<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
>
This does not seem to work for me for SL5:
 $ yumdownloader --enablerepo=sl-source  --source  gdm
Loaded plugins: kernel-module, priorities
No source RPM found for 1:gdm-2.16.0-56.sl.i386

But
$ yumdownloader -d 7 --enablerepo=slc5-updates-srpms  --source --noplugins
--urls gdm
Config time: 0.132
repo time: 0.000
Setting up Package Sacks
pkgsack time: 0.041
No source RPM found for 1:gdm-2.16.0-56.sl.i386
Running compare_providers() for [<YumAvailablePackageSqlite :
1:gdm-2.16.0-56.el5.src (0x8e8c44c)>, <YumAvailablePackageSqlite :
1:gdm-2.16.0-56.1.slc5.src (0x8e8c42c)>, <YumAvailablePackageSqlite :
1:gdm-2.16.0-56.slc5.src (0x8e8c46c)>]
Reading Local RPMDB
rpmdb time: 0.000
base package gdm is installed for 1:gdm-2.16.0-56.1.slc5.src
base package gdm is installed for 1:gdm-2.16.0-56.slc5.src
Best Order: [(<YumAvailablePackageSqlite : 1:gdm-2.16.0-56.1.slc5.src
(0x8e8c42c)>, 7), (<YumAvailablePackageSqlite : 1:gdm-2.16.0-56.slc5.src
(0x8e8c46c)>, -1017)]
http://linuxsoft.cern.ch/cern/slc5X/i386/yum/updates-srpms//gdm-2.16.0-56.1.slc5.src.rpm

gregory

Reply via email to