Creating a Local Repository and Sharing With Disconnected/Offline/Air-gapped Systems.

Updated

Environment

  • Red Hat Enterprise Linux 9
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 5

There are multiple approaches to configure a repository on RHEL systems as mentioned below:

Approach 1: Red Hat Satellite

For this approach, a Red Hat Satellite system needs to be deployed. The Satellite receives the latest packages from Red Hat repositories. The client systems will then connect to the Satellite to installs updates. More details on Red Hat Satellite are available here:
This content is not included.The best way to manage your Red Hat infrastructure .

Approach 2: Create a Local Repository

This approach is applicable for RHEL 9/8/7/6/5 wherein a Red Hat registered system and of the same major version is required. The connected system uses reposync to download all the rpms from a specified repository into a local directory. This local directory can then be configured as a repository which can be shared using HTTP, NFS, or FTP. The client systems can then access these repositories to install packages.

Approach 3: Update with new minor release media

DVD media of new RHEL minor releases (i.e. RHEL6.1) are available from RHN. These ISOs can be used directly on the system for updating the packages by configuration a local repository from the ISO. For details, please refer to the kbase solutions with detailed instructions, which are specific to the various RHEL major versions for RHEL 9/8/7/6/5.
How do I set up an up2date or yum repository from a locally-mounted DVD on Red Hat Enterprise Linux?

Approach 4: Manually downloading and installing or updating packages

It is possible to download and install errata packages. For details refer to this document:
How do I download security RPMs using the Red Hat Errata Website?.

NOTE : Without a connection to the RHN/RHSM the updates have to be transferred over other paths. These are partly hard to implement and automate.

SBR
Category
Components
Article Type