6.1 Upgrading from Oracle Linux 6

It is possible to upgrade an Oracle Linux 6 system to Oracle Linux 7 Update 7 under the following conditions:

  • The system meets the minimum installation requirements for Oracle Linux 7 as described in Chapter 1, System Requirements and Limitations.

  • The Oracle Linux 6 system has been completely updated from the ol6_x86_64_latest channel or ol6_latest repository.

  • UEK R3 or UEK R4 has been installed on the system that is to be upgraded and is the default boot kernel.

    Upgrading from UEK R2 is not supported. Note that the system is upgraded to use the UEK R5 release that is provided with Oracle Linux 7 Update 7.

  • No Oracle product stack is present on the system.

Upgrading is supported only for systems that are installed with the Minimal Install base environment. If additional packages are installed from an alternative repository or channel, upgrade might fail or the resulting upgrade might not function as expected.

For general instructions on how to perform an upgrade, see Oracle® Linux 7: Installation Guide.

The following steps are specific to the update for this release:

  1. Make sure your system is completely up to date by using the yum update command to update to the latest Oracle Linux 6 release. The system must be subscribed to the ol6_x86_64_latest and ol6_x86_64_addons channels or ol6_latest and ol6_addons repositories to be updated.

  2. Install the latest versions of the required upgrade packages:

    # yum install openscap redhat-upgrade-tool preupgrade-assistant \
      preupgrade-assistant-el6toel7 preupgrade-assistant-el6toel7-data-0 \
      preupgrade-assistant-tools preupgrade-assistant-ui

    Obtain the latest versions of these packages from ULN (in the ol6_x86_64_addons channel), or from the Oracle Linux yum server (in the ol6_addons repository).

  3. If the system is registered with ULN, delete the system from ULN and disable yum plugins.

  4. Run the preupg command to perform an upgrade assessment:

    # preupg

    Examine the results in /root/preupgrade/result.html to make sure there are no items that have failed or need attention.

  5. Run the redhat-upgrade-tool-cli command to perform the upgrade:

    # redhat-upgrade-tool-cli --network=7.5 --instrepo=OL7_repo_url \
    --debuglog=/tmp/upgrade.log --cleanup-post

    where OL7_repo_url is the URL of the repository where the Oracle Linux 7 Update 7 ISO is hosted.

  6. Reboot the system to start the upgrade process.

Note

When upgrading from Oracle Linux 6 to Oracle Linux 7 Update 7, the previous version of UEK R4 is removed from the system during the upgrade and the system is updated to use the UEK R5 release that is provided on the installation media image as the default boot kernel.