GNU/Linux CentOS Enabling Oracle Linux Repo
Hi! This tutorial provides a detailed, step-by-step guide on how to add the Oracle Enterprise Yum/Dnf Repository on CentOS GNU/Linux.
Of particular importance: this serves as an excellent solution for installing the latest Oracle software, such as Java, which isn’t accessible through CentOS repositories.
After setting up the Oracle software, it’s advisable to disable this repository.”
Finally, this Guide is Valid also for All the others RedHat Linux Based Distros like:
- RedHat Enterprise Linux
- Rocky Linux
- AlmaLinux
1. Terminal QuickStart
How to Quick-Start with Command Line on CentOS:
2. Adding Oracle Linux Repository
Next to Add Oracle Linux Dnf Repository
Make a File with nano Editor:sudo nano /etc/yum.repos.d/temp_base.repo
On CentOS 8 Copy & Paste:[ol8_baseos_latest] name=Oracle Linux 8 BaseOS Latest ($basearch) baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL8/baseos/latest/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle gpgcheck=1 enabled=1
Ctrl+Shift+v to Paste in with nano.
Where instead for CentOS 9:[ol9_baseos_latest] name=Oracle Linux 9 BaseOS Latest ($basearch) baseurl=https://yum$ociregion.$ocidomain/repo/OracleLinux/OL9/baseos/latest/$basearch/ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle gpgcheck=1 enabled=1
Finally, Ctrl+x to Save & Exit from nano Editor.
Last, refresh the Apt Sources again!3. Clearing Repo Metadata
Last, possibly Clean the Repository Metadata
With:sudo yum clean expire-cache