Mailinglist Archive: opensuse (3464 mails)
| < Previous | Next > |
Re: [opensuse] Caching updates locally/Local update server
- From: Rauch Christian <info@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 20 Apr 2007 10:21:15 +0200
- Message-id: <462877FB.7070904@xxxxxxxxxxxxxxxxxx>
Prajjwal Devkota wrote:
> #!/bin/bash
>
> BASEURL="http://ftp5.gwdg.de/pub/suse/update/10.2/rpm/i586/"
> WORKDIR=/usr/local/src/updates/patchrpms/
>
> cd $WORKDIR
> #get list of rpms from the patch directory
> wget -c $BASEURL
> #compile a list of patch rpms
> awk -Fhref= '/patch.rpm/{print $2}' index.html|awk -F\" '{print
> $2}'>list
> #and pull rpms
> while read line
> do
> wget -c $BASEURL/$line
> done<list
>
> Let me know if I am doing something the "too long" way round.
>
> Prajjwal
rsync -av --partial --progress --delete-after
rsync://ftp5.gwdg.de/pub/suse/update/10.2/rpm/i586/
/usr/local/src/updates/patchrpms/
should do the same job
Chris
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
> #!/bin/bash
>
> BASEURL="http://ftp5.gwdg.de/pub/suse/update/10.2/rpm/i586/"
> WORKDIR=/usr/local/src/updates/patchrpms/
>
> cd $WORKDIR
> #get list of rpms from the patch directory
> wget -c $BASEURL
> #compile a list of patch rpms
> awk -Fhref= '/patch.rpm/{print $2}' index.html|awk -F\" '{print
> $2}'>list
> #and pull rpms
> while read line
> do
> wget -c $BASEURL/$line
> done<list
>
> Let me know if I am doing something the "too long" way round.
>
> Prajjwal
rsync -av --partial --progress --delete-after
rsync://ftp5.gwdg.de/pub/suse/update/10.2/rpm/i586/
/usr/local/src/updates/patchrpms/
should do the same job
Chris
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |