8i | 9i | 10g | 11g | 12c | 13c | 18c | 19c | 21c | 23ai | Misc | PL/SQL | SQL | RAC | WebLogic | Linux
Home » Articles » Linux » Here
Convert RHEL 5.x to Oracle Linux 5.x
Convert RHEL to Oracle Linux
Log on to the RHEL server as the "root" user and remove the existing yum repository files.
cd /etc/yum.repos.d rm *.repo
Download the key and repository file from public-yum.oracle.com.
wget http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle gpg --quiet --with-fingerprint /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle wget http://public-yum.oracle.com/public-yum-el5.repo
Erase the "rhn-client-tools" package, as this will cause conflicts with "up2date" during the full update.
yum erase rhn-client-tools -y yum update --skip-broken -y yum install up2date -y
Restart the server.
shutdown -r now
The server is now an Oracle Linux server, updated with all the latest packages.
Comments
- You need some form of fallback plan in case this goes wrong. In my case, the upgrade was done on a virtual machine, so I had the option of reverting to a snapshot from before the conversion was started.
- It’s possible your installation will have different dependencies, which might need a little more clean-up before the “yum update”. If so, attempt to delete the conflicting packages, then re-install them once the update is complete.
- This was from RHEL5.9 to OL5.11. The move from earlier spins of RHEL may be a little different, but from what I’ve read it should be fine.
- This should be obvious, but you will have to do some testing to make sure the resulting installation is working as expected.
For more information see:
Hope this helps. Regards Tim...