Chapter 9. Create and synchronize a Red Hat repository

9.1. Create a repository

Procedure

  1. On the Red Hat Update Appliance (RHUA), log in to the Red Hat Update Infrastructure Management Tool:

    [root@rhua ~]# rhui-manager
  2. In the Red Hat Update Infrastructure Management Tool home screen, press r to select manage repositories:

                 -= Red Hat Update Infrastructure Management Tool =-
    
    -= Home =-
    
       r   manage repositories
       c   manage content delivery servers (CDS)
       l   manage HAProxy load-balancer instances
       s   synchronization status and scheduling
       e   create entitlement certificates and client configuration RPMs
       n   manage Red Hat entitlement certificates
       u   upload content to a custom repository (RPM content only)
       ur  upload content from a remote web site (RPM content only)
       p   list packages in a repository (RPM content only)
    
    Connected: rhua.example.com
  3. Press a to select add a new Red Hat content repository:

    ----------------------------------------------------------------------------------
            	-= Red Hat Update Infrastructure Management Tool =-
    
    = Repository Management =-
    
    l   list repositories currently managed by the RHUI
    i   display detailed information on a repository
    a   add a new Red Hat content repository
    c   create a new custom repository (RPM content only)
    d   delete a repository from the RHUI
    u   upload content to a custom repository (RPM content only)
    ur  upload content from a remote web site (RPM content only)
    p   list packages in a repository (RPM content only)
    
    Connected: rhua.example.com
    ------------------------------------------------------------------------------
    
    rhui (repo) => a
  4. Wait for the Red Hat Update Infrastructure Management Tool to determine the entitled repositories. This might take several minutes.

    Connected: rhua.example.com
    
    ------------------------------------------------------------------------------
    
    rhui (repo) => a
    
    Loading latest entitled products from Red Hat...
    
    Determining undeployed products...
  5. The Red Hat Update Infrastructure Management Tool prompts for a selection method.

    ... product list calculated
    
    Import Repositories:
    
    1  - All in Certificate
    2  - By Product
    3  - By Repository
    
    Enter value (1-3) or 'b' to abort:
  6. Press 2 to select the By Product method.
  7. Add Red Hat repositories to the RHUA by entering the number beside each repository that you want to include. The only repositories that will display are Red Hat repositories that are included in your entitlement certificate but have not yet been added.
  8. Press c when your are finished selecting the repositories. The Red Hat Update Infrastructure Management Tool displays the repositories to be deployed and prompts for confirmation.
  9. Press y to proceed. A screen message indicates each successful deployment.
  10. Check that the correct repositories have been installed by pressing l to access the list repositories currently managed by the RHUI screen.

9.2. Synchronize a repository

The initial synchronization of Red Hat content can take a while, typically 10 to 20 minutes. Begin synchronizing as soon as possible.

Procedure

  1. Navigate to the Red Hat Update Infrastructure Management Tool home screen:

    [root@rhua ~]# rhui-manager
  2. Press s to select synchronization status and scheduling:

                 -= Red Hat Update Infrastructure Management Tool =-
    
    -= Home =-
    
       r   manage repositories
       c   manage content delivery servers (CDS)
       l   manage HAProxy load-balancer instances
       s   synchronization status and scheduling
       e   create entitlement certificates and client configuration RPMs
       n   manage Red Hat entitlement certificates
       u   manage RHUI users
    
    Connected: rhua.example.com
  3. Press sr to select sync an individual repository immediately:

    ------------------------------------------------------------------------------
            	-= Red Hat Update Infrastructure Management Tool =-
    
    -= Synchronization Status =-
    
    dr  display repo sync summary
    vr  view the details of the last repository sync
    sr  sync an individual repository immediately
    
    Connected: rhua.example.com
    
    ------------------------------------------------------------------------------
  4. Select the repository and press c to confirm.
  5. Press y to proceed.
  6. Enter dr to select display repo sync summary.

    ------------------------------------------------------------------------------
    
    rhui (sync) => dr
    ------------------------------------------------------------------------------
            	-= Red Hat Update Infrastructure Management Tool =-
    
    -= Repository Synchronization Status =-
    
    Last Refreshed: 13:59:27
    
    (updated every 5 seconds, ctrl+c to exit)
    
    Next Sync                	Last Sync                	Last Result
    
    ------------------------------------------------------------------------------
    
    Red Hat Enterprise Linux 7 Server - Extras from RHUI (RPMs) (x86_64)
    
    02-29-2016 19:54         	02-29-2016 13:59         	Success
    
    Connected: rhua.example.com
    ------------------------------------------------------------------------------

Additional resources

  • See link: for more information.