How to host a yum/dnf Repository locally ?

Solution Verified - Updated

Environment

  • Red Hat Enterprise Linux (5/6/7/8/9)
  • HTTP
  • NFS
  • FTP

Issue

  • How to host a yum/dnf repository locally ?

Resolution

Once the packages are downloaded with repodata created referring RHEL 7 reposync, or RHEL 8 reposync, or DVD mounted repo, the local repository can be distributed among the offline/disconnected systems using either of the following three methods.

Apache (HTTP or HTTPS)

HTTP is relatively easy to understand and use, making it accessible to developers and users alike. In addition to HTTP , HTTPS uses the SSL/TLS protocol to encrypt communications so that attackers can't steal data.

FTP

This allows the transfer of multiple files and directories. It has ability put items into a queue to be uploaded or downloaded.

NFS share

NFS provides a central management. NFS allows for a user to log into any server and have access to their files transparently.It can be secured with firewalls and Kerberos.

SBR
Components
Category
Tags

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.