Skip to content
davidnutter edited this page Feb 9, 2012 · 1 revision

Table of Contents

The steps

  1. Push all updates from your local centos mirror to your spacewalk server
  2. Get a centos-announce digest posting or download an archive from the the list archive pages. If you just want to play, I provide some test files in each release.
  3. Uncompress the archive, if used.
  4. Run the script in test mode (--test) on your file to check your configuration is correct for the errata you want for your distribution. Remember to specify -f archive if you are using the downloaded archive format
  5. Run the script without the --test flag to push the errata to your spacewalk server
  6. The script is not very chatty when pushing errata - be patient as it takes about 15 seconds for each one to upload.
  7. Log in to spacewalk and examine your freshly-minted errata.

Example usage

This assumes customization of config file and use of a digest posting:

  ./centos-errata.py /tmp/centos-digest-message.txt

More complicated usage

  ./centos-errata.py --i386-channel my-i386-updates \
                  --server spacewalk.example.com \ 
                  --i386-packagedir /centos-mirror/5.3/updates/x86_64/RPMS \
                 /tmp/centos-announce-digest.txt

Test mode usage, using archive format

  ./centos-errata.py -f archive --test /tmp/2009-May.txt     

Clone this wiki locally