How to sync a Channel on Red Hat Satellite 5.x?
Environment
- Red Hat Satellite 5.x
- Red Hat Enterprise Linux
Issue
- How to sync (synchronize) a channel on Red Hat Satellite 5.x?
- Channels aren't available for clients even though subscriptions were purchased.
- How to view the channels on Satellite via command line ?
- What is
satellite-synccommand? Why it is used? - How to use
satellite-syncandcdn-syncon Satellite 5.8 to synchronize Channel content?
Resolution
satellite-sync- andcdn-syncintroduced in Satellite v5.8 - is a utility used to synchronize Channel content into a Red Hat Satellite 5 server's database and RPM repository from either Red Hat Network (RHN) Classic Hosted (satellite-syncfor Satellite 5.7 and below), Red Hat Content Delivery Network (CDN) (cdn-syncfor Satellite 5.8), local media (satellite-sync), or a master Satellite 5 server via Inter-Satellite sync (satellite-sync).- Refer to the official Red Hat Satellite 5 documentation for "Content Synchronization Tool" (Satellite v 5.8, 5.7, 5.6. For example, running the following command as root on a Satellite will give all available channels and exit.
If Satellite v5.8 live sync from CDN:
# cdn-sync --list-channels
If Satellite v5.7 or below, or Satellite v5.8 sync'ing via local storage or via Inter-Satellite-sync:
# satellite-sync --list-channels
p = previously imported/synced channel
. = channel not yet imported/synced
- To sync a particular channel, use the
satellite-sync -ccommand with one of the channel names provided by the above.
If Satellite v5.8 live sync from CDN:
# cdn-sync -c <channel_name> -c <channel2_name> -c <channel3_name> ...
If Satellite v5.7 or below, or Satellite v5.8 sync'ing via local storage or via Inter-Satellite-sync:
# satellite-sync -c <channel_name> -c <channel2_name> -c <channel3_name> ...
Example:
# satellite-sync -c rhel-i386-server-5
and
# satellite-sync -c rhel-i386-server-5 -c rhn-tools-rhel-x86_64-server-5 -c rhel-x86_64-server-5
- To point to a specific path, add the -m option
# satellite-sync -c rhel-i386-server-5 -m /path/to/packages
For information on automating the satellite-sync process, see What is the recommended method to automate Red Hat Satellite synchronization?
- To find out specific channel label, access that channel from portal and get details of it.
Example:
Channel : Red Hat Enterprise Linux Server (v. 6 for 32-bit x86)
Label : rhel-i386-server-6
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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
