Visit Counter

Sunday, August 9, 2020

Oracle Linux 6.5 To 7 In-Place Upgrade

 


Upgrade Oracle Linux 6.5 to 7 In-Place Upgrade

===================================


# /etc/redhat-release

Red Hat Enterprise Linux Server release 6.5 (Santiago)

# /etc/yum.repo.d/public.repo

=======================================================

[ol6_addons]

name=Oracle Linux $releasever Add ons ($basearch)

baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/addons/$basearch/

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle

gpgcheck=1

enabled=1

# yum update

========================================================

yum install redhat-upgrade-tool preupgrade-assistant preupgrade-assistant-el6toel7 preupgrade-assistant-el6toel7-data-0 preupgrade-assistant-tools preupgrade-assistant-ui openscap --skip-broken



# /usr/bin/preupg


# /roort/preupgrade.html


Pre upgrade report error below error.


Checking the system version and variant 1x fail

Checking the system version and variant                                                       Failed






Solution :

=======

1
2
3
4
5
6
7
8
9
// Download and replace yum repository file with the new one!
# cd /etc/yum.repos.d
# rm public-yum-ol6.repo
# export http_proxy=proxy.acme.com:80   (optional)
# nano public-yum-ol6.repo
// find section [ol6_UEKR3_latest] and set Enabled=1
# yum update
# reboot

That’s it. Don’t forget to set Enabled=1 in ol6_UEKR3 section, unless you don’t want to upgrade UEK2 kernel to version UEK3.


# yum update 


# preupg


# /root/upgrade.html


No error generated below the report.





# /etc/redhat-release

Red Hat Enterprise Linux Server release 6.10 (Santiago)






Refer:

https://docs.oracle.com/en/operating-systems/oracle-linux/7/install/ol7-upgrade-inplace.html