Hi,

I just checked in a tool which is quite useful for updating distro packages on
a cluster and a repository. Together with the yume tool this allows updating
the repository with bug-fixed distro packages, as well as updating images and
client nodes (without reinstalling). At the same time it keeps only the new
RPMs in the repository, such that things stay clean. I planned to donate this
to OSCAR since quite a while but didn't have time to clean it up too
much. Right now (with the FC3 trouble), it seems appropriate and useful.

Usage:
    repo-update [--url URL_TO_PACKAGES] [--repo LOCAL_PATH] \
       [--prim PRIMARY.XML] [--check] [--rmdup] [--verbose|-v]

 Download packages from an online repository to the local repository
 LOCAL_PATH or the current directory. If the repodata/primary.xml file
 from the remote repository has already been downloaded and unpacked, it
 can be passed to the program with the --prim option.
 --check only lists the files which would be downloaded but does not start
 the wget transfer.

 The --rmdup option leads to the removal of old versions of packages, keeping
 only the latest version. If the --url option is not specified, i.e. no 
downloads
 are required, the --rmdup option removes the duplicate packages (older 
versions)
 in the repository specified by --repo. If the --check option is specified, the
 packages which would be removed are listed.

 Examples:
   Check packages which would be downloaded from a FC4 updates mirror site:

   repo-update --url http://mirrors.dotsrc.org/fedora/updates/4/i386/ --check \
          --repo /tftpboot/distro/fedora-4-i386


   Download updates to current directory (which could be the repository) and
   remove older packages:

   repo-update --url http://mirrors.dotsrc.org/fedora/updates/4/i386/ --rmdup


   Remove duplicate rpms (old package versions) from the repository (usefull
   when one has copied the packages over from /var/cache/yum/*/packages/):

   repo-update --rmdup --repo /tftpboot/distro/fedora-4-i386


A word of warning: To my knowledge the version comparison function is working
well. If it fails, this program might remove the wrong packages from your
repository. One should use the --rmdup function carefully.

Another thing: this program does not recreate the metadata of a repository!
Either you start the install_wizard or you create it manually.

Best regards,
Erich





-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Oscar-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to