Upgrading the Unbreakable Enterprise Kernel (UEK) on Oracle Linux 6.2

Environment: Oracle Linux 6.2 64-bit with kernel 2.6.32-300.11.1.el6uek.x86_64, Oracle VM VirtualBox 4.1.10.

Oracle just released the RPMs for Oracle Linux 6.3. You can get them here. This includes an update of their Unbreakable Enterprise Kernel (UEK). I will explain here how you can upgrade your kernel to the latest version.

To know which kernel you are currently running, you can use the command “uname -r”:

$ uname -r
2.6.32-300.11.1.el6uek.x86_64

We are now going to upgrade our kernel to the latest version by using yum. The first thing you need to do is to get the yum configuration file for your platform. Note: execute all commands with user root.

$ cd /etc/yum.repos.d/
$ wget http://public-yum.oracle.com/public-yum-ol6.repo

--2012-06-28 11:08:31--  http://public-yum.oracle.com/public-yum-ol6.repo
Resolving public-yum.oracle.com... 141.146.44.34
Connecting to public-yum.oracle.com|141.146.44.34|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1707 (1.7K) [text/plain]
Saving to: “public-yum-ol6.repo”

100%[===================================================================================>] 1,707       --.-K/s   in 0s

2012-06-28 11:08:36 (162 MB/s) - “public-yum-ol6.repo” saved [1707/1707]

Next, modify the public-yum-ol6.repo file and set enabled=1 in the section [ol6_UEK_latest]. This is how my file looks like now:

[ol6_latest]
name=Oracle Linux $releasever Latest ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=0

[ol6_ga_base]
name=Oracle Linux $releasever GA installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/0/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=0

[ol6_u1_base]
name=Oracle Linux $releasever Update 1 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/1/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=0

[ol6_u2_base]
name=Oracle Linux $releasever Update 2 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/2/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=0

[ol6_u3_base]
name=Oracle Linux $releasever Update 3 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/3/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=0

[ol6_UEK_latest]
name=Latest Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/latest/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=1

[ol6_UEK_base]
name=Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=0

To upgrade the kernel, run the command “yum upgrade kernel-uek”. This will ask for a confirmation first before downloading and installing the new kernel:

$ yum upgrade kernel-uek
Loaded plugins: refresh-packagekit, security
ol6_UEK_latest                                                                                        |  951 B     00:00
Setting up Upgrade Process
Resolving Dependencies
--> Running transaction check
---> Package kernel-uek.x86_64 0:2.6.39-200.24.1.el6uek will be installed
--> Processing Dependency: kernel-uek-firmware = 2.6.39-200.24.1.el6uek for package: kernel-uek-2.6.39-200.24.1.el6uek.x86_64
--> Running transaction check
---> Package kernel-uek-firmware.noarch 0:2.6.39-200.24.1.el6uek will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================
 Package                          Arch                Version                              Repository                   Size
=============================================================================================================================
Installing:
 kernel-uek                       x86_64              2.6.39-200.24.1.el6uek               ol6_UEK_latest               26 M
Installing for dependencies:
 kernel-uek-firmware              noarch              2.6.39-200.24.1.el6uek               ol6_UEK_latest              2.8 M

Transaction Summary
=============================================================================================================================
Install       2 Package(s)

Total download size: 28 M
Installed size: 103 M
Is this ok [y/N]:

Downloading Packages:
(1/2): kernel-uek-2.6.39-200.24.1.el6uek.x86_64.rpm                                                   |  26 MB     04:11
(2/2): kernel-uek-firmware-2.6.39-200.24.1.el6uek.noarch.rpm                                          | 2.8 MB     00:27
-----------------------------------------------------------------------------------------------------------------------------
Total                                                                                        104 kB/s |  28 MB     04:39
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : kernel-uek-firmware-2.6.39-200.24.1.el6uek.noarch                                                         1/2
  Installing : kernel-uek-2.6.39-200.24.1.el6uek.x86_64                                                                  2/2

Installed:
  kernel-uek.x86_64 0:2.6.39-200.24.1.el6uek
Dependency Installed:
  kernel-uek-firmware.noarch 0:2.6.39-200.24.1.el6uek
Complete!

After the upgrade, reboot your system. After the reboot run the command “uname -r” again. You will notice that the new kernel is used now:

$ uname -r
2.6.39-200.24.1.el6uek.x86_64

Note: if you are trying this on Oracle VM VirtualBox, upgrading the kernel will break the Guest Additions. To fix this, you need to download the “kernel-uek-devel-2.6.39-200.24.1.el6uek.x86_64” package first and then reinstall the Guest Additions.

 

Matthias

Advertisements

One Response to Upgrading the Unbreakable Enterprise Kernel (UEK) on Oracle Linux 6.2

  1. Mike says:

    Thank you, it worked perfect!!!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: