How to Add Oracle Linux Repository on CentOS

April 11, 2024 | By the+gnu+linux+evangelist.

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
How to Add Oracle Linux Dnf Repository - Featured
  1. 1. Terminal QuickStart

    How to Quick-Start with Command Line on CentOS:

    Fedora Console Quick-Start
  2. 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:
    name=Oracle Linux 8 BaseOS Latest ($basearch)
    Ctrl+Shift+v to Paste in with nano.
    Where instead for CentOS 9:
    name=Oracle Linux 9 BaseOS Latest ($basearch)
    Finally, Ctrl+x to Save & Exit from nano Editor.
    Last, refresh the Apt Sources again!

  3. 3. Clearing Repo Metadata

    Last, possibly Clean the Repository Metadata

    sudo yum clean expire-cache

QuickChic Theme • Powered by WordPress