OCNE: Steps To Configure Local OL8 Yum Mirror Repository For Oracle Cloud Native Environment Offline Installation/Upgrades
(Doc ID 2968577.1)
Last updated on AUGUST 21, 2023
Applies to:
Oracle Cloud Native Environment (OCNE) - Version 1.5 and laterInformation in this document applies to any platform.
Goal
This document provides detailed steps on how to setup and configure local OL8 yum mirror repository for Oracle Cloud Native Environment (OCNE) product offline installation/upgrades.
NOTE: Configuration steps in this MOS note are specifically for mirroring yum repositories locally which are needed for OCNE product installation/upgrades. All Operating System/Kernel repositories are not downloaded and mirrored with the steps mentioned in this MOS Note.
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Goal |
Solution |
STEP 1: On the OL8 Server on which you want to configure the Local Yum Mirror, validate that it has connectivity to public yum |
STEP 2: Create base directory for the local repositories on OL8 Local Yum Mirror server |
STEP 3: Install the yum-utils package on OL8 Local Yum Mirror server |
STEP 4: Install the Apache HTTP server on OL8 Local Yum Mirror server |
STEP 5: Change HTTP server DocumentRoot to the /u01/repos base directory on OL8 Local Yum Mirror server |
Change 1 |
Change 2 |
STEP 6: Start and enable the HTTP web server on OL8 Local Yum Mirror server |
6(a) Start and Enable HTTP web server |
6(b) Verify the HTTP web server service is running and enabled |
STEP 7: Start and Enable firewalld on OL8 Local Yum Mirror |
7(a) Start firewalld |
7(b) Enable firewalld so that it starts when host is rebooted |
7(c) Check the status of firewalld and make sure it is running. |
STEP 8: Enable incoming HTTP connections through the firewall on OL8 Local Yum Mirror server |
8(a) Enable incoming HTTP connections through the firewall |
8(b) Reload firewall |
8(c) Validate that http service is added to firewall |
STEP 9: Install oracle-olcne-release-el8 package on OL8 Local Yum Mirror server |
STEP 10: Disable all the repositories and just enabled OCNE repositories on OL8 Local Yum Mirror server |
10(a) Disable all the repositories on OL8 Local Yum Mirror server |
10(b) Enable OCNE repositories on OL8 Local Yum Mirror server |
10(c) Validate that OCNE repositories are enabled |
STEP 11: Create script to mirror all enabled OCNE product related repositories locally under base directory /u01/repos on OL8 Local Yum Mirror server |
11(a) Create /u01/repos/script & /u01/repos/logs directories to store script and capture mirror packages download logging |
11(b) Create ocne_local_mirror_repo_sync.sh shell script under /u01/repos/script directory |
11(c) Give 755 permissions to /u01/repos/script/ocne_local_mirror_repo_sync.sh script |
STEP 12: Execute ocne_local_mirror_repo_sync.sh script to download and mirror all enabled OCNE product related repositories locally to base directory /u01/yum on OL8 Local Yum Mirror server |
STEP 13: Validate that all the OCNE repositories are downloaded locally on OL8 Local Yum Mirror server |
STEP 14: Copy the GPG key to the HTTP server web home directory /u01/repos/yum on OL8 Local Yum Mirror server |
STEP 15: Validate if you are able to see the repos using HTTP URL. |
STEP 16: Point all the OCNE nodes where OCNE has to be installed to OL8 Local Yum Mirror server |
STEP 17: List the Repos Locally on all the OCNE nodes where the OCNE installation has to be performed. |