OEL update from 7.2 to 7.9 - denis-kol4ev/OraDBA GitHub Wiki

1. Current OS and kernel version

# lsb_release -d && uname -r
Description:    Oracle Linux Server release 7.2
3.8.13-118.17.4.el7uek.x86_64

2. Updating repositories

more details on the link - https://yum.oracle.com/getting-started.html

2.1 Check current repos

# yum repolist enabled 
Loaded plugins: ulninfo
repo id                         repo name                                                                                       status
ol7_UEKR3/x86_64                Latest Unbreakable Enterprise Kernel Release 3 for Oracle Linux 7Server (x86_64)                 1,101
ol7_latest/x86_64               Oracle Linux 7Server Latest (x86_64)                                                            22,916
repolist: 24,017

2.2 Disable all current repos

# cd /etc/yum.repos.d
# mv public-yum-ol7.repo public-yum-ol7.repo.disabled

2.3 Ceate a temporary yum repository configuration file ol7-temp.repo with the following content

[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

2.4 Install oraclelinux-release-el7

# yum install oraclelinux-release-el7

2.5 Remove ol7-temp.repo and any other remaining repo files that may conflict with Oracle Linux yum server

# mv ol7-temp.repo ol7-temp.repo.disabled

2.6 Check current repos

# yum repolist enabled
Loaded plugins: ulninfo
repo id                         repo name                                                                                       status
ol7_UEKR6/x86_64                Latest Unbreakable Enterprise Kernel Release 6 for Oracle Linux 7Server (x86_64)                   373
ol7_latest/x86_64               Oracle Linux 7Server Latest (x86_64)                                                            22,916
repolist: 23,289

3. Upgrade all of the packages on the system, including the kernel packages

more details on the link - https://docs.oracle.com/en/operating-systems/oracle-linux/7/relnotes7.9/ol7-install.html#ol7-upgrade-general

# yum update
# reboot 

4. Check updated OS and kernel version

# lsb_release -d && uname -r
Description:    Oracle Linux Server release 7.9
5.4.17-2102.204.4.3.el7uek.x86_64