Prerequisites for the Local Distribution Mirror
The system that you set up as a local distribution mirror must meet the following criteria:
- Must have Internet access to connect to the official Oracle Linux sources.
-
Has at least 6 GB of memory to create the yum metadata.
-
Must be configured to provide access to the mirrored repositories by system clients.
-
Has enough disk space to store copies of the packages that it hosts.
When calculating for the needed disk space, consider the following:
-
Disk space requirements depend on the repositories or channels that you choose to mirror. Other factors are the number of clients to be serviced, including their platforms, operating systems, and other specific packages that each client might be using and which would require updates.
-
Disk space that's used for a mirror is only consumed and is never released. Thus, disk requirements aren't static and can increase over time.
-
Packages in the repositories or channels are also updated on a regular schedule and further affects the storage requirements on the local yum server.
For guidance in estimating the disk size requirements, run the following command:
sudo dnf repoinfo [repo-ID]
Part of the command output includes the size of a specific repository, for example:
... Repo-id : ol8_x86_64_baseos_latest ... Repo-size : 29 G ... Repo-id : ol8_addons ... Repo-size : 4.8 G ...
Because repositories are dynamic and grow over time, always plan to allocate substantially greater disk space than what
Repo-size
specifies. Optionally, you can also create a dedicated file system and mount this to the directory that hosts the mirrored repositories. -