You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Linux: Convert RHEL7 to Oracle Linux 7 Repositories

edited May 28, 2024 6:52AM in Linux 2 comments

Applies To 

Linux OS 


Goal 

How to convert RHEL7 to Oracle Linux 7 Repositories 

Note: These steps are not supported for Oracle Cloud Infrastructure (OCI). For OCI instances we recommend deploying a new Oracle Linux Platform Image


Solution 

To install Oracle Linux 7 packages from Oracle Linux yum server on Red Hat Enterprise Linux perform these actions: 

1) Backup all existing repositories in /etc/yum.repos.d/ renaming the existing .repo files to .repo.old

$ cd /etc/yum.repos.d/$ sudo mv <repo_filename>.repo <repo_filename>.repo.old 

2) Create a new .repo file with the following content

   $ sudo vi /etc/yum.repos.d/ol7-temp.repo   [ol7_latest]    name=Oracle Linux $releasever Latest ($basearch)    baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/latest/$basearch/    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle    gpgcheck=1    enabled=1 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!