From: Chris on
Hello all,

Does anyone know of a "good" way to mirror one or more repos for local
consumption? I have a rather slow Internet connection and several computer
all running openSUSE 10.3. Instead of downloading +150MB for each machine,
I would rather download it once and apply it to all the machines. Anyone
know of a good procedure?

Thanks,

--
Chris
From: Andreas on
Chris wrote:
> Does anyone know of a "good" way to mirror one or more repos for local
> consumption? I have a rather slow Internet connection and several computer
> all running openSUSE 10.3. Instead of downloading +150MB for each machine,
> I would rather download it once and apply it to all the machines. Anyone
> know of a good procedure?

man wget... wget -m
From: houghi on
Chris wrote:
> Hello all,
>
> Does anyone know of a "good" way to mirror one or more repos for local
> consumption? I have a rather slow Internet connection and several computer
> all running openSUSE 10.3. Instead of downloading +150MB for each machine,
> I would rather download it once and apply it to all the machines. Anyone
> know of a good procedure?

Use rsync.

houghi
--
First we thought the PC was a calculator. Then we found out how to turn
numbers into letters with ASCII and we thought it was a typewriter. Then
we discovered graphics, and we thought it was television. With the World
Wide Web, we've realized it's a brochure. -- Douglas Adams.
From: Chris on
Andreas wrote:

> Chris wrote:
>> Does anyone know of a "good" way to mirror one or more repos for local
>> consumption? I have a rather slow Internet connection and several
>> computer all running openSUSE 10.3. Instead of downloading +150MB for
>> each machine, I would rather download it once and apply it to all the
>> machines. Anyone know of a good procedure?
>
> man wget... wget -m

That's what I was thinking of using too. :) I was also thinking of using
rsync as well.

My thought was that I could use wget to do the initial download of the whole
repo. Then successive calls to wget would only download those files that do
not already exist? I could also remove the .repo file and repodata
directories and run createrepo and create a local version of the .repo
file? That sound sane? The only caveat would be that I would need to go
through the repo once-in-awhile to remove the older/duplicate RPMs.
--
Chris
From: houghi on
Chris wrote:
> That's what I was thinking of using too. :) I was also thinking of using
> rsync as well.

No, you have not thought about rsync, otherwise you would not have typed
the following:

> My thought was that I could use wget to do the initial download of the whole
> repo. Then successive calls to wget would only download those files that do
> not already exist? I could also remove the .repo file and repodata
> directories and run createrepo and create a local version of the .repo
> file? That sound sane? The only caveat would be that I would need to go
> through the repo once-in-awhile to remove the older/duplicate RPMs.

With rsync you do not have these issues.
http://en.opensuse.org/Mirror_Infrastructure for more on this.

houghi
--
First we thought the PC was a calculator. Then we found out how to turn
numbers into letters with ASCII and we thought it was a typewriter. Then
we discovered graphics, and we thought it was television. With the World
Wide Web, we've realized it's a brochure. -- Douglas Adams.