Based on the rsync script, the fact that patch, delta, and full rpms may
all be important, and to save bandwidth by preventing unnecessary files,
my new script is the one below:

        #!/bin/bash
        PATCHDIR=/usr/local/src/update/patches
        RSYNCDIR=rsync://ftp5.gwdg.de/pub/suse/update/10.2/rpm/i586/
        INCLUDEFILE=$PATCHDIR/files/rpmlist
        
        #Create list of rpms
        rpm -qa|awk -F-[0-9] '{print $1}' > $INCLUDEFILE
        sed -i 's/$/-[0-9]*.rpm/g' $INCLUDEFILE
        
        #No longer used-- I want not only patch rpms, but the delta and
        full ones as well
        #rsync -av --include=*.patch.rpm --exclude=* --partial
        --progress --delete-after $RSYNCDIR $PATCHDIR
        
        #rsync required patches with the server: exclude any packages if
        they have not been installed yet
        rsync -av --include-from=$INCLUDEFILE --exclude=* --partial
        --progress --delete-after $RSYNCDIR $PATCHDIR

If some installed packages are going to need new packages to be
installed during upgrade, thats up to the sysadmin to pull manually.

Prajjwal

On Fri, 2007-04-20 at 12:39 +0200, Marcus Meissner wrote:
> On Fri, Apr 20, 2007 at 03:39:17PM +0545, Prajjwal Devkota wrote:
> > 
> > > You should perhaps know that fixes also arrive in .delta.rpms 
> > > and sometime there just are the FULL rpms.
> > 
> > When you mention it, yes.  But I got my problem fixed with the patch
> > rpm, which is why I was fixated on the patch rpms.  I am scared about
> > the number of FULL rpms I will have to download-- bandwidth is something
> > that I would not like too congested.  However, delta rpms should be
> > included as well I guess.
> > 
> > Regarding delta rpms, could anyone explain to me when deltas are
> > released, when patches are released, and when full rpms are released?  I
> > am assuming full ones would be the most significant changes, then patch
> > rpms, then deltas.  I do not plan to upgrade everything, just the rpms
> > causing problems as far as possible, and I am going to add a filter to
> > the rsync script for this.   I guess there is a lot of documentation to
> > go through for me!
> 
> Both deltas and patch RPMs are generated internally. If the deltasize is
> approximately the size of the patch rpm, only the patch RPM is used.
> 
> Ciao, Marcus

Message Disclaimer: This electronic message may contain confidential 
information. If you have received it in error,
please immediately inform the sender and delete the mail and any attachments. 
Unless it relates to the official business 
of UMN, any opinions, views and other information expressed in this document 
are those of the individual sender. 

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to