Red Hat Satellite
How to Enable a Red Hat Repository in Satellite
- . Log in to RHEL Satellite
- . Go to Content > Red Hat Repositories
- . Find the Red Hat Repository you are looking for on the left side, "Available Repositories"
- . Then select it and click the plus "+" symbol. It will move it to the right, "Enabled Repositories".
How to create a new repository in Satellite
- . Go to Red Hat Satellite > Content > Product (select organization) > Software Center > Repositories > Click New Repository.
- . Then select/enter/check these settings:
- . Name: Rhel7_test_repro
- . Label: Rhel7_test_repro
- . Description
- . Type: file
- . Verify SSL
- . HTTP Proxy Policy: Global Default (None)
- . Unprotected
- . Hit Save
- . Then click on the new repository and upload binaries, rpm/tar packages, files, etc.
Managing Content Views
Red hat Satellite 6 uses Content Views to create customized repositories from the repositories. To do this, you must define which repositories to use and then apply certain filters to the content. These filters include both package filters, package group filters, and errata filters. You can use Content Views to define which software versions a particular environment uses. For example, a Production environment might use a Content View containing older package versions, while a Development environment might use a Content View containing newer package versions.
Each Content View creates a set of repositories across each environment, which Satellite Server stores and manages. When you promote a Content View from one environment to the next environment in the application life cycle, the respective repository on Satellite Server updates and publishes the packages.
How to Create Activation Key to Allow Users to Register to Satellite Repo
- . Login to Red Hat Satellite
- . Go to Content > Activation Keys
- . Select Create Activation Key
- . Provide Name (i.e. RHEL79_SRV)
- . Provide Description (optional)
- . Select the Environment (i.e. RHEL7)
- . In the Content View drop down, select the Content View you want (i.e. RHEL79)
- . Click Save
- . You should now see the Activation Key which can be used during system registration, i.e.
subscription-manager register --org="org_name" --activationkey="RHEL79_SRV"
How to Unregister and Re-register to a new Satellite Repo
$ sudo subscription-manager remove --all [sudo] password for user: 0 subscriptions removed at the server. $ sudo subscription-manager unregister Unregistering from: 123.xyz.com:443/rhsm System has been unregistered. $ sudo subscription-manager clean All local data removed $ sudo subscription-manager register --force --org="org_name" --activationkey="RHEL8_SRV" The system has been registered with ID: 1234abcd-123c-34fd-vc23-1111122222333 The registered system name is: <hostname>