Upgrading Oracle Linux from 6.2 to 6.3

Environment: Oracle Linux 6.2 64-bit, Oracle Linux 6.3 64-bit, Oracle VM VirtualBox 4.1.18

Oracle recently released version 6.3 of their Linux distribution, so I decided to upgrade my 6.2 installation on VirtualBox, which has Oracle 11gR2 and GlassFish running on it.

Some things you need to keep in mind:

– you need root access

– downloading and installing the rpm packages can take a long time

– you need to reboot your server after the upgrade

– for production servers, take a full system backup before starting the upgrade

First, let’s check the version of our current installation:

$ su -
$ cat /etc/oracle-release
Oracle Linux Server release 6.2
$ lsb_release -d
Description:	Oracle Linux Server release 6.2

Next, we need to retrieve the yum repository file. Rename the old one if it already exists.

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

--2012-08-23 10:43:43--  http://public-yum.oracle.com/public-yum-ol6.repo
Resolving public-yum.oracle.com...
Connecting to public-yum.oracle.com||: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-08-23 10:43:48 (42.4 MB/s) - “public-yum-ol6.repo” saved [1707/1707]

Finally, start the upgrade with the command “yum upgrade”. This will generate a list of all rpm packages that will be updated or installed, and also show you how much free disk space you will need for the download. I needed about 420 MB. Press “y” to confirm the upgrade.

$ yum upgrade
Transaction Summary
Install      22 Package(s)
Upgrade     374 Package(s)
Remove        1 Package(s)

Total download size: 417 M
Is this ok [y/N]:
 vim-minimal.x86_64 2:7.2.411-1.8.el6                           wpa_supplicant.x86_64 1:0.7.3-3.el6
  xmlrpc-c.x86_64 0:1.16.24-1209.1840.el6                        xmlrpc-c-client.x86_64 0:1.16.24-1209.1840.el6
  xorg-x11-drv-ati.x86_64 0:6.14.2-9.el6                         xorg-x11-drv-ati-firmware.noarch 0:6.14.2-9.el6
  xorg-x11-drv-intel.x86_64 0:2.16.0-4.el6                       xorg-x11-drv-mga.x86_64 0:1.4.13-7.el6
  xorg-x11-drv-wacom.x86_64 0:0.13.0-6.el6                       xorg-x11-server-Xorg.x86_64 0:1.10.6-1.el6
  xorg-x11-server-common.x86_64 0:1.10.6-1.el6                   xulrunner.x86_64 0:10.0.6-1.0.1.el6_3
  yum.noarch 0:3.2.29-30.0.1.el6                                 yum-plugin-security.noarch 0:1.1.30-14.el6
  yum-rhn-plugin.noarch 0:0.9.1-40.0.1.el6                       yum-utils.noarch 0:1.1.30-14.el6


When the upgrade completes successfully, reboot your server to activate the new kernel… and hope everything works fine :-)

Note: on VM VirtualBox, you will need to re-install the Guest Additions after the upgrade. Click on Devices -> Install Guest Additions… in the top menu to reinstall them. You will need to reboot your guest one more time to enable them.



6 Responses to Upgrading Oracle Linux from 6.2 to 6.3

  1. Lenz Grimmer says:

    Thanks for this quick HOWTO. You don’t actually have to perform a reinstall of the VirtualBox Guest Additions – simply run “/etc/init.d/vboxadd setup” as root to rebuild the kernel modules.

  2. fateh says:

    Hi Matthias,
    I have never used Linux system. What are the points I have to learn and understand in order to install Oracle Linux and install APEX with Glassfish on it… ??

    Or you advise me as a Win user not to go for Oracle Linux !!


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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: