Packages mentioned in `/etc/rhn/spacewalk-repo-sync/yum.conf` for exclusion are not excluded by spacewalk-repo-sync on Red Hat Satellite.

Solution Verified - Updated -

Environment

  • Red Hat Satellite 5.5
  • Red Hat Satellite 5.6
  • Spacewalk-repo-sync utility

Issue

  • spacewalk-repo-sync lacks include/exclude features.

  • Pakcages listed in /etc/rhn/spacewalk-repo-sync/yum.conf for exclusion are not excluded by Spacewalk-repo-sync while syncing the local repository on satellite.

Resolution

  • This issue is fixed in Red Hat Satellite 5.6 with release of RHBA-2014-0379.

  • For reference /etc/rhn/spacewalk-repo-sync/yum.conf file.

[channel-name]
exclude=package* <----- package for excluding
  • In previous Satellite version, use exclude option from command line with spacewalk-repo-sync:

Workaround ->

  -e FILTERS, --exclude=FILTERS
                        List of excluded packages

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments