Chapter 3 Installation and Availability

Table of Contents

3.1 Upgrading from Oracle Linux 6
3.2 Installing the MySQL Packages from the DVD Image
3.3 Installing OFED Packages from the ol7_x86_64_UEKR3_OFED20 Channel

You can download a full Oracle Linux 7 installation media image from the Oracle Software Delivery Cloud at http://edelivery.oracle.com/linux. You can also obtain Oracle Linux 7 packages from the Unbreakable Linux Network (ULN) and the Oracle Public Yum server.

The following table lists some of the channels and repositories that will be made available on ULN and Oracle Public Yum for Oracle Linux 7.

ULN Channel

Public Yum Repository

Description

ol7_x86_64_latest

ol7_latest

Latest packages for Oracle Linux 7.

ol7_x86_64_u0_base

ol7_u0_base

Base packages for the initial release (Update 0) of Oracle Linux 7.

ol7_x86_64_u0_patch

 

Patches for the initial-release packages of Oracle Linux 7.

ol7_x86_64_addons

ol7_addons

GPL-licensed packages for Oracle Linux 7 that have not been sourced from upstream.

ol7_x86_64_Dtrace_userspace

 

DTrace user-space packages for Oracle Linux 7.

ol7_x86_64_Ksplice

 

Ksplice packages for Oracle Linux 7.

ol7_x86_64_MySQL55

ol7_MySQL55

MySQL Community Edition 5.5 packages for Oracle Linux 7.

ol7_x86_64_MySQL56

ol7_MySQL56

MySQL Community Edition 5.6 packages for Oracle Linux 7.

ol7_x86_64_optional_latest

ol7_optional_latest

Latest optional packages (including most *-devel packages) for Oracle Linux 7 that have been sourced from upstream.

ol7_x86_64_oracle

 

Oracle software packages for Oracle Linux 7.

ol7_x86_64_UEKR3

ol7_UEKR3

Latest Unbreakable Enterprise Kernel Release 3 (UEK R3) packages for Oracle Linux 7.

ol7_x86_64_UEKR3_OFED20

 

OpenFabrics Enterprise Distribution (OFED) 2.0 packages for UEK R3 on Oracle Linux 7. See Section 3.3, “Installing OFED Packages from the ol7_x86_64_UEKR3_OFED20 Channel”.

ol7_x86_64_VirtualBox

 

Oracle VM VirtualBox packages for Oracle Linux 7.

Note

Some ULN channels will not be made available until after the initial release.

Oracle Public Yum does not provide equivalent repositories for some channels that are available on ULN. These channels provide non-open source packages.

The kernel source code is available after the initial release via a public git source code repository at https://oss.oracle.com/git/?p=linux-uek3-3.8.git.

UEK R3 is the default boot kernel for fresh installations of Oracle Linux 7.

For systems that are running UEK R3 and are subscribed to the ol7_x86_64_UEKR3 channel on ULN, or the ol7_x86_64_UEKR3 repository on Oracle Public Yum, you upgrade to the latest UEK release as follows:

  1. Upgrade all packages on the system, including kernel packages.

    # yum update

    By default, the boot manager automatically enables the most recent kernel version so you do not need to change your GRUB configuration.

  2. Reboot the system.

    # systemctl reboot

3.1 Upgrading from Oracle Linux 6

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

  • The system meets the minimum installation requirements for Oracle Linux 7. See Section 1.1, “System Requirements”.

  • UEK R3 has been installed on the system to be upgraded and is the default boot kernel. Upgrading from UEK R2 is not supported.

  • No Oracle product stack is present on the system.

Upgrading is supported only for systems that are installed with the Minimal Install base environment.

The following table shows the changes that are applied to any kernels that are configured on the system being upgraded.

Kernel on Original System

Kernel on Upgraded System

RHCK (2.6.32)

RHCK (3.10.0) for Oracle Linux 7 is installed. RHCK (2.6.32) is removed.

UEK R3 (3.8.13)

UEK R3 (3.8.13) for Oracle Linux 7 is installed and made the default boot kernel. The previous version of UEK R3 is removed.

For instructions on how to perform an upgrade, see Upgrading an Oracle Linux System in the Oracle Linux 7 Installation Guide.

3.2 Installing the MySQL Packages from the DVD Image

Note

If the system is registered with ULN and has access to ULN channels or it has access to Oracle Public Yum, the preferred method is to install the MySQL packages from the ol7_x86_64_MySQL55 or ol7_x86_64_MySQL56 channels on ULN or from the ol7_MySQL55 or ol7_MySQL56 repositories on Oracle Public Yum.

To install the MySQL Community Edition 5.6 packages from the Extras directory on the Oracle Linux 7 full installation DVD image:

  1. Mount the DVD image on the system.

    For example, download the DVD image file to the system, create a mount point, and mount the image on this mount point:

    # mkdir -p /var/OSimage/OL7u0_x86_64
    # mount -o loop,ro OracleLinux-R7-U0-Server-x86_64-dvd.iso /var/OSimage/OL7u0_x86_64

    Alternatively, mount the DVD image from a physical or virtual DVD:

    # mkdir -p /var/OSimage/OL7u0_x86_64
    # mount -o ro /dev/cdrom /var/OSimage/OL7u0_x86_64
  2. Create a local directory for the MySQL packages and copy the packages to this directory:

    # mkdir -p /var/MySQL56_OL7
    # cp -a -T /var/OSimage/OL7u0_x86_64/Extras /var/MySQL56_OL7
  3. If the createrepo utility does not exist on the system, use the following command to install it:

    # yum install createrepo
  4. Create a yum repository for the MySQL packages:

    # createrepo /var/MySQL56_OL7
  5. Rename the existing Oracle Linux repository file, usually /etc/yum.repos.d/public-yum-ol7.repo, so that the file name does not have the .repo extension, for example:

    # mv /etc/yum.repos.d/public-yum-ol7.repo /etc/yum.repos.d/public-yum-ol7.repo.orig
  6. Create a new repository file, /etc/yum.repos.d/OL7u0.repo, which contains the following entries:

    [OL7_u0]
    name=Oracle Linux 7u0 x86_64 
    baseurl=file:///var/OSimage/OL7u0_x86_64 
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=1
    
    [OL7_MySQL56]
    name=MySQL 5.6 for Oracle Linux 7u0 x86_64 
    baseurl=file:///var/MySQL56_OL7
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=1
  7. Use yum to install the MySQL packages, for example:

    # yum install mysql-community-bench
    Note

    Installing the MySQL packages replaces any conflicting MariaDB packages (mariadb*).

  8. To restore the original repository configuration after installing the MySQL packages:

    1. Restore the original Oracle Linux repository file that you renamed in step 6, for example:

      # mv /etc/yum.repos.d/public-yum-ol7.repo.orig /etc/yum.repos.d/public-yum-ol7.repo
    2. Rename the new repository file that you created in step 7 so that the file name does not have the .repo extension, for example:

      # mv /etc/yum.repos.d/OL7u0.repo /etc/yum.repos.d/OL7u0.repo.orig

      Alternatively, remove the file if you do not intend to install additional MySQL packages in the future:

      # rm /etc/yum.repos.d/OL7u0.repo
    3. Unmount the DVD image:

      # umount /var/OSimage/OL7u0_x86_64
    4. To save disk space, you can remove the directory where you set up the local repository for the MySQL packages:

      # rm -rf /var/MySQL56_OL7

3.3 Installing OFED Packages from the ol7_x86_64_UEKR3_OFED20 Channel

If you subscribe a system to the ol7_x86_64_UEKR3_OFED20 channel on ULN, remove any existing OFED packages before installing any new OFED packages from this channel. The OFED packages are not upgradable if you installed them from the Oracle Linux 7 full installation DVD image, the ol7_x86_64_latest channel on ULN, or the ol7_latest repository on Oracle Public Yum, or if they are present on an Oracle Linux 6 Update 5 system that you have upgraded to Oracle Linux 7.

Use the rpm command to remove the old OFED packages, for example:

# rpm -e infiniband-diags \
libibcm \
libibcm-devel \
libibmad \
libibmad-devel \
libibumad \
libibumad-devel \
libibverbs \
libibverbs-devel \
libmlx4 \
librdmacm \
librdmacm-devel \
opensm-devel \
opensm-libs \
ibacm-devel \
ibutils \
ibutils-libs

You can then use yum to install the new packages, for example:

# yum install ibutils

If you see a package conflict, use rpm to remove the old package before trying to install the new package again.