Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Enable and Install UEK Release 6 on Oracle Linux 7 or Oracle Linux 8 Update 1

Simon Coter-OracleApr 29 2020 — edited May 1 2020

Following technical article will share all the steps required to enable and install Unbreakable Kernel Release 6 on Oracle Linux 7 as well Oracle Linux 8.

As you can see from the blog article "Oracle Linux and Unbreakable Enterprise Kernel (UEK) Releases", UEK6 is today available for:

  • Oracle Linux 7 Update 7
  • Oracle Linux 7 Update 8
  • Oracle Linux 8 Update 1

while, presumably, the same will be part, by default, of the next Oracle Linux 8 Update 2 release.

Note: the installation of UEK6 on Oracle Linux won't replace and/or upgrade existing UEK releases installed on your system; the same will only add UEK6 to the system, and the the system can still be booted with any installed kernel.

Following steps will leverage RPMs available for free on yum.oracle.com website:

  • Verify the list of Yum repositories enabled on your Oracle Linux 7 or 8 system; "ol7_latest" or "ol8_latest" Yum channels have to be enabled

# yum repolist

     Example:

[root@ovirt: ~]# yum repolist

Loaded plugins: versionlock

repo id                                                              repo name                                                                                                                  status

!ol7_UEKR5/x86_64                                                    Latest Unbreakable Enterprise Kernel Release 5 for Oracle Linux 7Server (x86_64)                                                 153+33

!ol7_gluster6/x86_64                                                 Oracle Linux 7Server Gluster 6 Packages (x86_64)                                                                                  33+13

!ol7_kvm_utils/x86_64                                                Oracle Linux 7Server KVM Utilities (x86_64)                                                                                      410+31

!ol7_latest/x86_64                                                   Oracle Linux 7Server Latest (x86_64)                                                                                       14,471+4,045

!ol7_optional_latest/x86_64                                          Oracle Linux 7Server Optional Latest (x86_64)                                                                              11,391+2,294

!ovirt-4.2/x86_64                                                    Latest oVirt 4.2 Release (x86_64)                                                                                                243+83

!ovirt-4.2-extra/x86_64                                              oVirt 4.2 Extra (x86_64)                                                                                                         171+74

!ovirt-4.3/x86_64                                                    Latest oVirt 4.3 Release (x86_64)                                                                                                138+56

!ovirt-4.3-extra/x86_64                                              oVirt 4.3 Extra (x86_64)                                                                                                         116+44

repolist: 27,126

  • Update your Oracle Linux 7 or Oracle Linux 8 system

# yum update -y

  • Install "yum-utils" RPM on your system; this RPM will install "yum-config-manager", python script that will be used to enable new Yum channels
    • Oracle Linux 7

# yum install yum-utils -y

    • Oracle Linux 8

# dnf install yum-utils -y

  • With the system updated, you should have following Yum configuration file containing the details related to UEK6

Note: the file name could be "uek-ol8.repo" if you're running on Oracle Linux 8.

# cat /etc/yum.repos.d/uek-ol7.repo |grep -A4 UEKR6

     Example:

[root@ovirt: ~]# cat /etc/yum.repos.d/uek-ol7.repo |grep -A4 UEKR6

[ol7_UEKR6]

name=Latest Unbreakable Enterprise Kernel Release 6 for Oracle Linux $releasever ($basearch)

baseurl=https://yum$ociregion.oracle.com/repo/OracleLinux/OL7/UEKR6/$basearch/

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

gpgcheck=1

enabled=0

  • Enable "ol7_UEKR6" or "ol8_UEKR6" Yum repositories on your Oracle Linux 7 or 8 system
    • Oracle Linux 7

# yum-config-manager --enable ol7_UEKR6

    • Oracle Linux 8

Note: on Oracle Linux 8 the "ol8_UEKR6" Yum repository should be enabled by default; if it's not, you can proceed with the following step

# yum-config-manager --enable ol8_UEKR6

  • Get "Unbreakable Enterprise Kernel Release 6" installed on your Oracle Linux 7 or Oracle Linux 8 system.
    • Oracle Linux 7

# yum update -y

          Example:

[root@ovirt: ~]# yum update -y

Loaded plugins: versionlock

Resolving Dependencies

--> Running transaction check

---> Package btrfs-progs.x86_64 0:4.15.1-1.el7 will be updated

---> Package btrfs-progs.x86_64 0:5.4.0-1.el7 will be an update

---> Package e2fsprogs.x86_64 0:1.42.9-17.el7 will be updated

---> Package e2fsprogs.x86_64 0:1.45.4-2.el7 will be an update

--> Processing Dependency: libfuse.so.2(FUSE_2.8)(64bit) for package: e2fsprogs-1.45.4-2.el7.x86_64

--> Processing Dependency: libfuse.so.2(FUSE_2.6)(64bit) for package: e2fsprogs-1.45.4-2.el7.x86_64

--> Processing Dependency: libfuse.so.2(FUSE_2.5)(64bit) for package: e2fsprogs-1.45.4-2.el7.x86_64

--> Processing Dependency: libfuse.so.2()(64bit) for package: e2fsprogs-1.45.4-2.el7.x86_64

---> Package e2fsprogs-libs.x86_64 0:1.42.9-17.el7 will be updated

---> Package e2fsprogs-libs.x86_64 0:1.45.4-2.el7 will be an update

---> Package iproute.x86_64 0:4.16.0-1.0.5.el7 will be updated

---> Package iproute.x86_64 0:5.4.0-1.0.1.el7 will be an update

---> Package iproute-tc.x86_64 0:4.16.0-1.0.5.el7 will be updated

---> Package iproute-tc.x86_64 0:5.4.0-1.0.1.el7 will be an update

---> Package kernel-uek.x86_64 0:5.4.17-2011.1.2.el7uek will be installed

---> Package kernel-uek-devel.x86_64 0:5.4.17-2011.1.2.el7uek will be installed

---> Package libcom_err.x86_64 0:1.42.9-17.el7 will be updated

---> Package libcom_err.x86_64 0:1.45.4-2.el7 will be an update

---> Package libss.x86_64 0:1.42.9-17.el7 will be updated

---> Package libss.x86_64 0:1.45.4-2.el7 will be an update

---> Package nvme-cli.x86_64 0:1.8.1-3.el7 will be updated

---> Package nvme-cli.x86_64 0:1.9-2.el7 will be an update

---> Package xfsprogs.x86_64 0:4.15-6.el7 will be updated

---> Package xfsprogs.x86_64 0:5.4.0-1.el7 will be an update

--> Running transaction check

---> Package fuse-libs.x86_64 0:2.9.4-1.0.4.el7 will be installed

--> Finished Dependency Resolution

--> Running transaction check

---> Package kernel-uek.x86_64 0:4.14.35-1902.11.3.el7uek will be erased

---> Package kernel-uek-devel.x86_64 0:4.14.35-1902.11.3.el7uek will be erased

--> Finished Dependency Resolution

Dependencies Resolved

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

Package                                            Arch                                     Version                                                     Repository                                    Size

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

Installing:

kernel-uek                                         x86_64                                   5.4.17-2011.1.2.el7uek                                      ol7_UEKR6                                     58 M

kernel-uek-devel                                   x86_64                                   5.4.17-2011.1.2.el7uek                                      ol7_UEKR6                                     16 M

Updating:

btrfs-progs                                        x86_64                                   5.4.0-1.el7                                                 ol7_UEKR6                                    828 k

e2fsprogs                                          x86_64                                   1.45.4-2.el7                                                ol7_UEKR6                                    1.0 M

e2fsprogs-libs                                     x86_64                                   1.45.4-2.el7                                                ol7_UEKR6                                    222 k

iproute                                            x86_64                                   5.4.0-1.0.1.el7                                             ol7_UEKR6                                    619 k

iproute-tc                                         x86_64                                   5.4.0-1.0.1.el7                                             ol7_UEKR6                                    406 k

libcom_err                                         x86_64                                   1.45.4-2.el7                                                ol7_UEKR6                                     44 k

libss                                              x86_64                                   1.45.4-2.el7                                                ol7_UEKR6                                     49 k

nvme-cli                                           x86_64                                   1.9-2.el7                                                   ol7_UEKR6                                    337 k

xfsprogs                                           x86_64                                   5.4.0-1.el7                                                 ol7_UEKR6                                    1.0 M

Removing:

kernel-uek                                         x86_64                                   4.14.35-1902.11.3.el7uek                                    @ol7_UEKR5                                    57 M

kernel-uek-devel                                   x86_64                                   4.14.35-1902.11.3.el7uek                                    @ol7_UEKR5                                    63 M

Installing for dependencies:

fuse-libs                                          x86_64                                   2.9.4-1.0.4.el7                                             ol7_latest                                    95 k

Transaction Summary

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

Install  2 Packages (+1 Dependent package)

Upgrade  9 Packages

Remove   2 Packages

Total download size: 78 M

Downloading packages:

Delta RPMs disabled because /usr/bin/applydeltarpm not installed.

(1/12): btrfs-progs-5.4.0-1.el7.x86_64.rpm                                                                                                                                           | 828 kB  00:00:04

(2/12): fuse-libs-2.9.4-1.0.4.el7.x86_64.rpm                                                                                                                                         |  95 kB  00:00:00

(3/12): e2fsprogs-1.45.4-2.el7.x86_64.rpm                                                                                                                                            | 1.0 MB  00:00:05

(4/12): e2fsprogs-libs-1.45.4-2.el7.x86_64.rpm                                                                                                                                       | 222 kB  00:00:02

(5/12): iproute-5.4.0-1.0.1.el7.x86_64.rpm                                                                                                                                           | 619 kB  00:00:03

(6/12): iproute-tc-5.4.0-1.0.1.el7.x86_64.rpm                                                                                                                                        | 406 kB  00:00:02

(7/12): kernel-uek-devel-5.4.17-2011.1.2.el7uek.x86_64.rpm                                                                                                                           |  16 MB  00:00:03

(8/12): kernel-uek-5.4.17-2011.1.2.el7uek.x86_64.rpm                                                                                                                                 |  58 MB  00:00:06

(9/12): libcom_err-1.45.4-2.el7.x86_64.rpm                                                                                                                                           |  44 kB  00:00:02

(10/12): libss-1.45.4-2.el7.x86_64.rpm                                                                                                                                               |  49 kB  00:00:02

(11/12): nvme-cli-1.9-2.el7.x86_64.rpm                                                                                                                                               | 337 kB  00:00:02

(12/12): xfsprogs-5.4.0-1.el7.x86_64.rpm                                                                                                                                             | 1.0 MB  00:00:03

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Total                                                                                                                                                                       3.7 MB/s |  78 MB  00:00:21

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

  Updating   : libcom_err-1.45.4-2.el7.x86_64                                                                                                                                                          1/23

  Updating   : e2fsprogs-libs-1.45.4-2.el7.x86_64                                                                                                                                                      2/23

  Updating   : libss-1.45.4-2.el7.x86_64                                                                                                                                                               3/23

  Installing : fuse-libs-2.9.4-1.0.4.el7.x86_64                                                                                                                                                        4/23

  Updating   : iproute-5.4.0-1.0.1.el7.x86_64                                                                                                                                                          5/23

  Updating   : iproute-tc-5.4.0-1.0.1.el7.x86_64                                                                                                                                                       6/23

  Updating   : e2fsprogs-1.45.4-2.el7.x86_64                                                                                                                                                           7/23

  Updating   : btrfs-progs-5.4.0-1.el7.x86_64                                                                                                                                                          8/23

  Installing : kernel-uek-devel-5.4.17-2011.1.2.el7uek.x86_64                                                                                                                                          9/23

  Installing : kernel-uek-5.4.17-2011.1.2.el7uek.x86_64                                                                                                                                               10/23

  Updating   : nvme-cli-1.9-2.el7.x86_64                                                                                                                                                              11/23

  Updating   : xfsprogs-5.4.0-1.el7.x86_64                                                                                                                                                            12/23

  Cleanup    : e2fsprogs-1.42.9-17.el7.x86_64                                                                                                                                                         13/23

  Cleanup    : btrfs-progs-4.15.1-1.el7.x86_64                                                                                                                                                        14/23

  Cleanup    : kernel-uek-4.14.35-1902.11.3.el7uek.x86_64                                                                                                                                             15/23

  Cleanup    : kernel-uek-devel-4.14.35-1902.11.3.el7uek.x86_64                                                                                                                                       16/23

  Cleanup    : e2fsprogs-libs-1.42.9-17.el7.x86_64                                                                                                                                                    17/23

  Cleanup    : libss-1.42.9-17.el7.x86_64                                                                                                                                                             18/23

  Cleanup    : iproute-tc-4.16.0-1.0.5.el7.x86_64                                                                                                                                                     19/23

  Cleanup    : iproute-4.16.0-1.0.5.el7.x86_64                                                                                                                                                        20/23

  Cleanup    : libcom_err-1.42.9-17.el7.x86_64                                                                                                                                                        21/23

  Cleanup    : nvme-cli-1.8.1-3.el7.x86_64                                                                                                                                                            22/23

  Cleanup    : xfsprogs-4.15-6.el7.x86_64                                                                                                                                                             23/23

VirtualBox Guest Additions: Building the modules for kernel

5.4.17-2011.1.2.el7uek.x86_64.

  Verifying  : xfsprogs-5.4.0-1.el7.x86_64                                                                                                                                                             1/23

  Verifying  : libcom_err-1.45.4-2.el7.x86_64                                                                                                                                                          2/23

  Verifying  : nvme-cli-1.9-2.el7.x86_64                                                                                                                                                               3/23

  Verifying  : iproute-5.4.0-1.0.1.el7.x86_64                                                                                                                                                          4/23

  Verifying  : btrfs-progs-5.4.0-1.el7.x86_64                                                                                                                                                          5/23

  Verifying  : fuse-libs-2.9.4-1.0.4.el7.x86_64                                                                                                                                                        6/23

  Verifying  : iproute-tc-5.4.0-1.0.1.el7.x86_64                                                                                                                                                       7/23

  Verifying  : libss-1.45.4-2.el7.x86_64                                                                                                                                                               8/23

  Verifying  : e2fsprogs-libs-1.45.4-2.el7.x86_64                                                                                                                                                      9/23

  Verifying  : kernel-uek-5.4.17-2011.1.2.el7uek.x86_64                                                                                                                                               10/23

  Verifying  : kernel-uek-devel-5.4.17-2011.1.2.el7uek.x86_64                                                                                                                                         11/23

  Verifying  : e2fsprogs-1.45.4-2.el7.x86_64                                                                                                                                                          12/23

  Verifying  : btrfs-progs-4.15.1-1.el7.x86_64                                                                                                                                                        13/23

  Verifying  : e2fsprogs-libs-1.42.9-17.el7.x86_64                                                                                                                                                    14/23

  Verifying  : libcom_err-1.42.9-17.el7.x86_64                                                                                                                                                        15/23

  Verifying  : iproute-tc-4.16.0-1.0.5.el7.x86_64                                                                                                                                                     16/23

  Verifying  : e2fsprogs-1.42.9-17.el7.x86_64                                                                                                                                                         17/23

  Verifying  : nvme-cli-1.8.1-3.el7.x86_64                                                                                                                                                            18/23

  Verifying  : kernel-uek-devel-4.14.35-1902.11.3.el7uek.x86_64                                                                                                                                       19/23

  Verifying  : iproute-4.16.0-1.0.5.el7.x86_64                                                                                                                                                        20/23

  Verifying  : libss-1.42.9-17.el7.x86_64                                                                                                                                                             21/23

  Verifying  : xfsprogs-4.15-6.el7.x86_64                                                                                                                                                             22/23

  Verifying  : kernel-uek-4.14.35-1902.11.3.el7uek.x86_64                                                                                                                                             23/23

Removed:

  kernel-uek.x86_64 0:4.14.35-1902.11.3.el7uek                                                      kernel-uek-devel.x86_64 0:4.14.35-1902.11.3.el7uek

Installed:

  kernel-uek.x86_64 0:5.4.17-2011.1.2.el7uek                                                        kernel-uek-devel.x86_64 0:5.4.17-2011.1.2.el7uek

Dependency Installed:

  fuse-libs.x86_64 0:2.9.4-1.0.4.el7

Updated:

  btrfs-progs.x86_64 0:5.4.0-1.el7       e2fsprogs.x86_64 0:1.45.4-2.el7       e2fsprogs-libs.x86_64 0:1.45.4-2.el7       iproute.x86_64 0:5.4.0-1.0.1.el7       iproute-tc.x86_64 0:5.4.0-1.0.1.el7

  libcom_err.x86_64 0:1.45.4-2.el7       libss.x86_64 0:1.45.4-2.el7           nvme-cli.x86_64 0:1.9-2.el7                xfsprogs.x86_64 0:5.4.0-1.el7

Complete!

    • Oracle Linux 8

Note: you can also specify to install "kernel-uek-devel" if required

# dnf install kernel-uek

          Example:

[root@ol8u1 ~]# dnf install kernel-uek -y

Oracle Linux 8 BaseOS Latest (x86_64)                                                                                                                                       7.1 MB/s |  17 MB     00:02

Oracle Linux 8 Application Stream (x86_64)                                                                                                                                  8.4 MB/s |  17 MB     00:01

Latest Unbreakable Enterprise Kernel Release 6 for Oracle Linux 8 (x86_64)                                                                                                  3.0 MB/s | 2.2 MB     00:00

Last metadata expiration check: 0:00:01 ago on Wed 29 Apr 2020 08:06:10 AM EDT.

Dependencies resolved.

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

Package                                        Architecture                               Version                                                      Repository                                     Size

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

Installing:

kernel-uek                                     x86_64                                     5.4.17-2011.1.2.el8uek                                       ol8_UEKR6                                      60 M

Transaction Summary

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

Install  1 Package

Total download size: 60 M

Installed size: 85 M

Downloading Packages:

kernel-uek-5.4.17-2011.1.2.el8uek.x86_64.rpm                                                                                                                                9.0 MB/s |  60 MB     00:06

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Total                                                                                                                                                                       9.0 MB/s |  60 MB     00:06

Running transaction check

Transaction check succeeded.

Running transaction test

Transaction test succeeded.

Running transaction

  Preparing        :                                                                                                                                                                                    1/1

  Running scriptlet: kernel-uek-5.4.17-2011.1.2.el8uek.x86_64                                                                                                                                           1/1

  Installing       : kernel-uek-5.4.17-2011.1.2.el8uek.x86_64                                                                                                                                           1/1

  Running scriptlet: kernel-uek-5.4.17-2011.1.2.el8uek.x86_64                                                                                                                                           1/1

  Verifying        : kernel-uek-5.4.17-2011.1.2.el8uek.x86_64                                                                                                                                           1/1

Installed:

  kernel-uek-5.4.17-2011.1.2.el8uek.x86_64

Complete!

  • Update again, your system to get possible updated UEK Release 6 user-space RPMs installed on your system
    • Oracle Linux 7

# yum update -y

    • Oracle Linux 8

# dnf update -y

  • Reboot your system to get "Unbreakable Enterprise Kernel Release 6" booting your system.

[root@ovirt: ~]# uname -a

Linux ol7u8 5.4.17-2011.1.2.el7uek.x86_64 #2 SMP Mon Apr 20 22:10:25 PDT 2020 x86_64 x86_64 x86_64 GNU/Linux

Comments

Post Details

Added on Apr 29 2020
3 comments
11,633 views