Linux: Convert RHEL7 to Oracle Linux 7 Repositories
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
Tagged:
1