How to set up the Oracle Yum Repository for RHEL 8 (Red Hat Enterprise Linux 8)


Steps:

1) Create a temporary file for repository for OEL8


[root@ocicliserver ~]# cd /etc/yum.repos.d/
[root@ocicliserver yum.repos.d]# 

vi public-yum-ol8.repo
[foa_ol8_baseos_latest]
name=Oracle Linux 8 BaseOS Latest ($basearch)
baseurl=https://yum.oracle.com/repo/OracleLinux/OL8/baseos/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1


2) Download Oracle Linux 8 GPG Key

To prevent GPG key retrieval failed, we need to download the right GPG key for the above Oracle yum repository.

[root@ocicliserver yum.repos.d]# wget https://yum.oracle.com/RPM-GPG-KEY-oracle-ol8 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle

--2023-10-04 04:36:51--  https://yum.oracle.com/RPM-GPG-KEY-oracle-ol8
Resolving yum.oracle.com (yum.oracle.com)... 104.114.92.124, 2600:140f:2c00:1a2::2a7d, 2600:140f:2c00:189::2a7d
Connecting to yum.oracle.com (yum.oracle.com)|104.114.92.124|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3169 (3.1K) [text/plain]
Saving to: ‘/etc/pki/rpm-gpg/RPM-GPG-KEY-oracle’

/etc/pki/rpm-gpg/RPM-GPG-KEY-ora 100%[========================================================>]   3.09K  --.-KB/s    in 0s      

2023-10-04 04:36:52 (80.8 MB/s) - ‘/etc/pki/rpm-gpg/RPM-GPG-KEY-oracle’ saved [3169/3169]

3) Install oraclelinux-release-el8:


# dnf install oraclelinux-release-el8

4) Remove public-yum-ol8.repo (done in step1) and any other remaining repo files that may conflict with Oracle Linux yum server:


# mv /etc/yum.repos.d/public-yum-ol8.repo /etc/yum.repos.d/public-yum-ol8.repo.disabled

5) Validate new repositories. I will validate the EBS package.


[root@ocicliserver yum.repos.d]# dnf info oracle-ebs-server-R12-preinstall
Last metadata expiration check: 0:06:52 ago on Wed 04 Oct 2023 04:40:03 AM GMT.
Available Packages
Name         : oracle-ebs-server-R12-preinstall
Version      : 1.0
Release      : 2.el8
Architecture : src
Size         : 28 k
Source       : None
Repository   : ol8_addons
Summary      : Sets the system for Oracle E-Business Suite Release 12 for Oracle Linux 8
License      : GPLv2
Description  : This package installs software packages and sets system parameters required for
             :  Oracle E-Business Suite Release 12 on Oracle Linux 8

Name         : oracle-ebs-server-R12-preinstall
Version      : 1.0
Release      : 2.el8
Architecture : x86_64
Size         : 29 k
Source       : oracle-ebs-server-R12-preinstall-1.0-2.el8.src.rpm
Repository   : ol8_addons
Summary      : Sets the system for Oracle E-Business Suite Release 12 for Oracle Linux 8
License      : GPLv2
Description  : This package installs software packages and sets system parameters required for
             :  Oracle E-Business Suite Release 12 on Oracle Linux 8






If you like please follow and comment