3.7.4. Enabling Yum Repositories
satellite-sync command synchronizes Red Hat channels from RHN into Satellite 5. In Satellite 6, everything is a yum repository and you filter the content from that repository that is exposed to the systems being managed by Satellite 6.
- Use the
hammer import repository --synchronizecommand to initiate repository synchronization in the background. - Use the
hammer import repository --synchronize --waitcommand to initiate repository synchronization in the background, but wait for each synchronization to complete before proceeding to the next repository. - Use the
hammer import repositorycommand with neither option and then synchronize the content manually using the WebUI orhammercommands.
The default behavior of the hammer import repository command is to not automatically synchronize content. Many of the following import operations require that synchronization be complete before they can run successfully. Synchronization is a time-consuming task, because it involves retrieving content from external sources into your Satellite 6 server.
hammer import command does not alter organizations that are not part of the overall transition process.
# hammer import repository-enable --synchronize --wait --no-async
repository-enable command is complete, run the following command to process local and custom repositories in a similar fashion.
# hammer import repository --synchronize --wait --no-async
Example 3.5. Example Session of Importing Repositories
# hammer import all --entities repository Import organization with arguments --csv-file /tmp/exports/users.csv Summary No action taken. Import repository with arguments --csv-file /tmp/exports/repositories.csv Summary Created 6 repositories. Created 6 products.
3.7.4.1. Enabling External Yum Repositories
--synchronize option to import and synchronize repositories.
Example 3.6. Importing and Synchronizing non-Red Hat Repositories
# hammer import repository --synchronize --wait --no-async \ --csv-file /tmp/exports/repositories.csv Creating new product: PUPPETLABS.COM Creating new repository: puppet-rhel6-server-x86_64 Sync started! Creating new repository: puppet-deps-rhel6-server-x86_64 Sync started! Creating new repository: puppet-rhel5-server-x86_64 Sync started! Product [1PUPPETLABS.COM->116] already imported. Creating new repository: puppet-deps-rhel5-server-x86_64 Sync started! Creating new product: FEDORAPROJECT.ORG Creating new repository: epel-rhel6-server-x86_64 Sync started!
Navigate to → in the Satellite 6 WebUI to view the resulting products and repositories for your organization. Alternatively, use the following hammer commands:
# hammer organization list ID | NAME | LABEL | DESCRIPTION 1 | ACME_Corporation | ACME_Corporation | ACME_Corporation Organization 3 | GLOBAL SUPPORT SERVI RED HAT, INC. | GLOBAL_SUPPORT_SERVI_RED_HAT__INC_ | Imported 'GLOBAL SUPPORT SERVI RED HAT, INC.' organization from Red ... # hammer product list --organization-id 3 ID | NAME | ORGANIZATION | REPOSITORIES | SYNC STATE 32 | Red Hat Enterprise Linux High Performance Networking for RHEL for IBM POWER -... | GLOBAL SUPPORT SERVI RED HAT, INC. | 0 | not_synced 35 | Red Hat Enterprise Linux 7 High Availability High Touch Beta | GLOBAL SUPPORT SERVI RED HAT, INC. | 0 | not_synced
Important
hammer import repository command is to not automatically synchronize content, but rather only to enable the repositories listed in the repositories.csv file. Red Hat recommends that you use the --synchronize option to schedule a background synchronization of all content before proceeding.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.