You are here

Oracle Linux 5 Installation

This chapter of the Oracle Cloud Cookbook describes how to download, install, setup, patch and prepair Oracle Linux 5 for Oracle technology installations.

Author: Roddy Rodstein

Table of Contents

 

Oracle Linux Installation and Oracle Linux Support Introduction

Oracle Linux can be installed either from a CD-ROM drive or over the network using a pre-boot execution environment (PXE). To install Oracle Linux using the CD-ROM or PXE boot method, visit the Oracle eDelivery Linux portal to download the Oracle Linux media. The Oracle Linux media is delivered as a zip file that contains a CD or a DVD with an Oracle Linux ISO file. The Oracle Linux ISO file can be burned as a bootable disk and used to install Oracle Linux from a CD-ROM drive.
 
An Oracle Linux PXE boot installation requires several additional steps; for example, a boot server and a kickstart file to automate the Oracle VM server installation must be created. The boot server allows a bare-metal system to automatically receive an IP address via DHCP, load a kernel via TFTP, and then boot without an operating system. Once the bare-metal server boots, Oracle Linux can be installed using the installation media or a kickstart file to automate the Oracle Linux installation.
 
The graphical installation program and the installation steps are similar for Oracle Linux 5, 5U1, 5U2, 5U3, 5U4, 5U5, 5U6, 5U7 and 5U8. The Oracle Linux installation media is freely available from the Oracle eDelivery Linux portal as a CD collection (multiple downloads) and as a single DVD (single download) for Oracle Linux 5, 5U1, 5U2, 5U3, 5U4, 5U5, 5U6, 5U7 and 5U8. If you install Oracle Linux using the CD collection, start the installation with CD #1, and when prompted enter the requested CDs.
 
List 1 reviews the Oracle Linux installation considerations.

1. Disk Partitioning Setup.
Depending upon your comfort level with installing Linux, you can accept the default partition layout or select a custom layout.
  • The default partition layout.
  • Selecting the default partitioning layout will create a 100MB “/boot” partition and a LVM with two volume groups, a large root “/” partition and a swap partition.
  • Custom layout.
  • 100% customizable.
2. Network Configuration
  • Configure a static IP address or use DHCP.
3. Time Zone Selection
  • Select the time zone settings for your area
  • Configure UTC for the system clock
4. Package Installation
  • Use the default software selection and click on Next
5. Firewall Configuration
  • For the initial OS and Oracle technology product installations, enable or disable the firewall
6. SELinux
  • For the initial OS and Oracle technology product installations, enable or disable SELinux
Oracle recommends installing Oracle Linux and Red Hat Enterprise using the default software package selection without any customization. Using the default software packages without customizations includes most of the prerequisite packages for Oracle technology products and helps limit the number of manual prerequisite checks. After an Oracle Linux and/or Red Hat Enterprise Linux installation, Oracle recommends to register your server with the Unbreakable Linux Network (ULN) and to install the Legacy Software Development packages by typing “up2date -i @ Legacy Software Development“ or if you have a local yum repository type “yum groupinstall "Legacy Software Development"” to install most of the remaining Oracle technology product prerequisite packages.
 
The Oracle Unbreakable Linux Network is a cloud resource for the Oracle Linux Support program that hosts the Oracle Linux, Oracle VM, Exadata and Exalogic RPM repositories, including software patches, updates and fixes. The Oracle Unbreakable Linux Network portal is located at http://linux.oracle.com. The Oracle Unbreakable Linux Network portal provides a simple dashboard and management interface for registered systems and RPM channels. The Oracle Unbreakable Linux Network repositories are used to patch and install RPMs for Oracle Linux, Oracle VM, Exadata and Exalogic systems. Oracle Linux support customers have the option to access patchs and RPMs for Oracle Linux, Oracle VM, Exadata and Exalogic systems from the Oracle Unbreakable Linux Network using the up2date program, or from a local yum repository.
 
The Unbreakable Linux Network is password protected. Before you can access the Oracle Unbreakable Linux Network you must have a valid Oracle Linux support contract, CSI number and an Oracle Single Sign-on account. Your existing My Oracle Support (MOS) Oracle Single Sign-on account will not work with the Oracle Unbreakable Linux Network until the account has been registered with the Oracle Unbreakable Linux Network. Click the Register link at the Oracle Unbreakable Linux Network portal to a) create a new Oracle Single Sign-on account or to b) associate your existing Oracle Single Sign-on account with the Oracle Unbreakable Linux Network. Once you have a valid support contract, and CSI number, you can register Oracle Linux systems at the Unbreakable Linux Network by typing “up2date --register” as root.
 
In March 2012, Oracle announced that Oracle Linux 4, 5 and 6 latest RPM patches, updates and erratas are available at no cost from the Oracle public yum server located at http://public-yum.oracle.com. The free Oracle Linux 4, 5 and 6 RPM patches, updates and erratas do not include Oracle support or any of the benefits of the Oracle Linux Support program.
 
The next example shows how to download the public-yum-el5.repo file from Oracle, then use the public-yum-el5.repo file to update the host, and install the Legacy Software Development packages. Type the following commands as root:

# cd /etc/yum.repos.d/
# wget http://public-yum.oracle.com/public-yum-el5.repo
# yum update
# yum groupinstall "Legacy Software Development"
 

Oracle Linux Packaging and Support Pricing

Oracle Linux is not a licensed Oracle technology product. The Oracle Linux installation media is freely available from the Oracle eDelivery Linux portal. Support for Oracle Linux and access to the Unbreakable Linux Network is available as an add-on component of Oracle’s enterprise support package as well as with Sun x86 hardware as an add-on Premier Support for Systems package. Oracle Linux running on third-party hardware (not on Sun Hardware) is always sold as an add-on support component of Oracle’s enterprise support package.
 
Premier Support for Systems costs 12% of the net Sun system purchase price and includes comprehensive support for the system hardware and firmware, as well as operating system support for Oracle Linux, Solaris x86, Solaris 11 Express, and Oracle VM for x86. Along with hardware and firmware support, Premier Support for Systems includes operating system support for one or more virtual instances Oracle Linux, Solaris 10 x86, and Solaris 11 Express x86 running on Oracle VM for x86.
 
Support for Oracle Linux installed on third-party hardware is sold in three packages: Oracle Linux Network, Oracle Linux Basic, and Oracle Linux Premier.
 
List 2 highlights the difference between the three different Oracle Linux support packages.
  • Oracle Linux Network Support includes access to the Unbreakable Linux Network for patches, fixes and security alerts. Oracle Linux Network support does not include 24x7 global OS support. For example, Oracle Linux Network Support does not include the ability to create Service Requests (SRs) to work with Oracle support.
  • Oracle Linux Basic Support includes 24x7 global OS support, access to the Unbreakable Linux Network for patches, fixes and security alerts, the Linux Management Pack (An Oracle Enterprise Manager Linux server lifecycle management Plug-in), and Oracle's OCFS2 cluster software for servers with up to two sockets.
  • Oracle Linux Premier Support includes 24x7 global OS support, access to the Unbreakable Linux Network for patches, fixes and security alerts, the Linux Management Pack (An Oracle Enterprise Manager Linux server lifecycle management Plug-in), Oracle's OCFS2 cluster software, Premier backports, and Oracle Lifetime Support for servers with four or more sockets.

Oracle Linux 5 Installation from the DVD/CD-ROM, using the Graphical (GUI) Mode

This section reviews how to install Oracle Linux and Red Hat Enterprise Linux from the DVD/CD-ROM, using the graphical (GUI) mode.
 
1- Boot the server using the DVD ISO image. At the boot prompt, press the Enter key to start the Oracle Linux installation in graphical mode.
 
Figure 1
Oracle Linux 5 Installation
 
2- On the CD Found window, you can perform a media test to validate the integrity of the installation media. The media test is optional and time consuming. In this example, we will not perform a media test.
 
Press the tab key to select the Skip key. Once the Skip key is selected, press the Enter key to proceed.
 
Figure 2
Oracle Linux 5 Installation
 
3- On the Welcome screen, click the Next button or Alt+N to proceed.
 
Note: to read the Release Notes, press the Release Notes button or press Alt+R.
 
Figure 3
Oracle Linux 5 Installation

4- On the Language Selection screen, select the preferred language that will be used during the installation process. In this example, select the default language, English (English).
 
Accept the default English (English) language selection, then click the Next button or press Alt+N to proceed.
 
Figure 4
Oracle Linux 5 Installation
 
5- On the Keyboard Selection screen, select the desired keyboard setting for the system. In this example, select the default keyboard selection, US English.
 
Accept the default US English keyboard selection, then click the Next button or press Alt+N to proceed.
 
Figure 5
Oracle Linux 5 Installation
 
6- A partition tableWarning dialogue box will appear after you make your Keyboard selection. Click the Yes button or press Alt+Y to proceed with the installation. If you click No, the installation will terminate.
 
Figure 6
Oracle Linux 5 Installation
 
7- On the Partitioning screen, you can select the default partitioning layout or create your own partitioning layout. Selecting the default partitioning layout will create a 100MB “/boot” partition and a LVM with two volume groups, a large root “/” partition and a swap partition.
 
In this example, accept the defaults, click the Next button or press Alt+N to proceed.
 
Figure 7
Oracle Linux 5 Installation
 
8- A partition table Warning dialogue box will appear after clicking the previous Next button. Click the Yes or press Alt+Y to proceed.
 
Figure 8
Oracle Linux 5 Installation
 
9- On the Networking configuration screen, you can accept the default DHCP setting or configure the networking manually.
 
To use DHCP, accept the defaults, and click the Next button or press Alt+N to proceed.
 
Figure 9
Oracle Linux 5 Installation
 
10- To configure the networking manually, click the Edit button or press Alt+E to access the Edit Interface screen. On the Edit Interface screen, select Manual Configuration and enter the IP address and Netmask. Next, unselect Enable IPv6 support. Click the Ok button or press ALT+O to save the networking setting and to return to the Networking configuration screen.
 
Figure 10
Oracle Linux 5 Installation
 
11- On the Networking configuration screen, select manually and enter the hostname, gateway and DNS information. Click the Next button or press Alt+N to proceed.
 
Figure 11
Oracle Linux 5 Installation
 
12- On the Time Zone screen, select the time zone for your area by clicking your region on the map. Accept the default System clock uses UTC setting, and click the Next button or press Alt+N to proceed.
 
Figure 12
Oracle Linux 5 Installation
 
13- On the Root Password screen enter a root password for the server, then click the Next button or press Alt+N to proceed.
 
Figure 13
Oracle Linux 5 Installation
 
14- On the Software Selection screen, you can accept the default selections or select one or more roles for the server and/or customize the entire software selection by selecting the Customize now.
 
Oracle recommends installing Linux using the default software package selection without any customization. Using the default software packages without customizations includes most of the prerequisite packages and helps limit the number of manual checks.
 
Accept the default software package selection without any customization, then click the Next button or press Alt+N to proceed.
 
Figure 14
Oracle Linux 5 Installation
 
15- On the About to Install screen, click the Next button or press Alt+N to start the installation.
 
Note: If you are installing Oracle Linux using the CD ISO images, you will be prompted to enter additional CDs.
 
Figure 15
Oracle Linux 5 Installation
 
16- On the Installation Progress screen, you will see a dialogue box about the hard drive being formatted. Once the hard drive is formatted, the installation begins and you see the progress indicators. The installation will take a few minutes.
 
Figure 16
Oracle Linux 5 Installation
 
17- The Congratulations screen informs you that the installation is complete, and to remove your DVD media from the system and to reboot the system.
 
Remove the CD/DVD media from the system, and click the Next button or press Alt+t to reboot the system.
 
Figure 17
Oracle Linux 5 Installation
 
18- After the system reboots, you will be presented with the Welcome screen. Click the Forward button or press Alt+F to proceed.
 
Figure 18
Oracle Linux 5 Installation
 
19- On the License Agreement screen, accept the license agreement and click the Forward button or press Alt+F to proceed.
 
Figure 19
Oracle Linux 5 Installation
 
20- On the Firewall screen, change the default Enabled selection to Disabled and click the Forward button or press Alt+F to proceed.
 
Figure 20
Oracle Linux 5 Installation
 
21- Disabling the firewall opens a dialogue window that informs you about changing the security setting of the system. Click the Yes button or press ALT+Y to proceed.
 
Figure 21
Oracle Linux 5 Installation
 
22- On the SELinux screen, change the default Enabled selection to Disabled and click the Forward button or press Alt+F to proceed.
 
Figure 22
Oracle Linux 5 Installation
 
23- Disabling SELinux opens a dialogue window that informs you about changing the SELinux setting and the need to reboot the system. Click the Yes button or press ALT+Y to proceed.
 
Figure 23
Oracle Linux 5 Installation
 
24- On the Kdump screen, accept the default setting and click the Forward button or press Alt+F to proceed.
 
Figure 24
Oracle Linux 5 Installation
 
25- On the Date and Time screen you can configure the Date and Time and Network Time Protocol (NTP) settings. Configure the Date and Time and Network Time Protocol settings, then click the Forward button or press Alt+F to proceed.
 
Figure 25
Oracle Linux 5 Installation
 
26- On the Create User screen, you can create new system users. Click the Forward button or press Alt+F to proceed.
 
Figure 26
Oracle Linux 5 Installation
 
27- On the Sound Card screen, click the Forward button or press Alt+F to proceed.
 
Figure 27
Oracle Linux 5 Installation
 
28- On the Additional CDs screen, click the Finish button or press Alt+F to complete the installation and to reboot the system.
 
Figure 28
Oracle Linux 5 Installation
 
29- As soon as the system has rebooted, you are presented with the Oracle Linux 5 login screen. Once you have successfully authenticated, you have a fully functional GNOME desktop environment.
 
Figure 29

Oracle Linux 5 Installation

 

Linux Patch Management with Free Updates and Errata from Oracle

In March 2012, Oracle announced that Oracle Linux 4, 5 and 6 latest RPM patches, updates and erratas are available at no cost from separate yum repositories on http://public-yum.oracle.com. Oracle's public yum repository allows us to keep Oracle Linux and Red Hat Enterprise Linux system up to date to the latest update version, using the "_latest" RPM repository. The free Oracle Linux 4, 5 and 6 RPM patches, updates and erratas do not include Oracle support or any of the benefits of the Oracle Linux Support program.

The Oracle Linux Support program offers the following benefits over and above the free Oracle Linux RPM patches, updates and erratas:
  • Full indemnification against intellectual property claims.  Remember the SCO lawsuits?
  • Use of the Oracle Enterprise Manager 12c Systems Management Plug-in for Linux for provisioning, patching, management and monitoring.  The Systems Management Plug-in for Linux has feature parity with Red Hat Satellite Server.
  • Access to additional Oracle software channels on the Unbreakable Linux Network (ULN).
  • The ability to create Support Requests with Oracle' World Class support organization.
The Oracle public yum server latest RPM channels include the base OS version installation RPM packages along with the latest software patches, updates and fixes. Patch jobs using the latest RPM channel update hosts to their respected latest version update with the latest software patches, updates and fixes. A patch job executed on a Oracle Linux 5U2 host would update the host from 5U2 to 5U8 with the latest latest software patches, updates and fixes. To keep a host at its respected update level, a valid CSI and the Unbreakable Linux Network is required. With the Unbreakable Linux Network, it is possible to register a host the el*/ol*_base channel along with the el*/ol*_patch RPM channel. When hosts are patched using the el*/ol*_base and el*/ol*_patch RPM channels, the hosts are patched with the latest software patches, updates and fixes from their respected update channel, i.e. 5, 5U1, 5U2, 5U3, 5U4, 5U6 and 5U7 not with the latest, i.e. 5U8 channel.

To configure an Oracle Linux, Red Hat Enterprise Linux 5 host to use Oracle's public yum repository, as root, change to the /etc/yum.repos.d/ directory and type “wget http://public-yum.oracle.com/public-yum-el5.repo” to download the public-yum-el5.repo file. Next, type “yum update” to patch the host.

The next example shows how to download the public-yum-el5.repo file from Oracle and to update an Oracle Linux or Red hat Enterprise Linux host. Type the following commands as root:

# cd /etc/yum.repos.d/
# wget http://public-yum.oracle.com/public-yum-el5.repo
# yum update -y

The next examples shows the public-yum-el5.repo file.

Tip: You can enable any of the repositories in the public-yum-el5.repo file by changing enabled=0 to enabled=1.

# vi /etc/yum.repos.d/public-yum-el5.repo
[el5_latest]
name=Oracle Linux $releasever Latest ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/latest/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=1
 
[el5_ga_base]
name=Oracle Linux $releasever GA installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/0/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0
 
[el5_u1_base]
name=Enterprise Linux $releasever Update 1 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/1/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0
 
[el5_u2_base]
name=Enterprise Linux $releasever Update 2 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/2/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0
 
[el5_u3_base]
name=Enterprise Linux $releasever Update 3 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/3/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0
 
[el5_u4_base]
name=Enterprise Linux $releasever Update 4 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/4/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0
 
[el5_u5_base]
name=Enterprise Linux $releasever Update 5 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/5/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0
 
[ol5_u5_base]
name=Oracle Linux $releasever Update 5 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/5/base/x86_64/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0
 
[ol5_u6_base]
name=Oracle Linux $releasever Update 6 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/6/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0
 
[ol5_u7_base]
name=Oracle Linux $releasever Update 7 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/7/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0
 
[ol5_u8_base]
name=Oracle Linux $releasever Update 8 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/8/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0
 
[el5_addons]
name=Enterprise Linux $releasever Add ons ($basearch)  
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/addons/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0
 
[el5_oracle_addons]
name=Oracle Software addons for Enterprise Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/oracle_addons/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0
 
[ol5_UEK_latest]
name=Latest Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/UEK/latest/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0
 
[ol5_UEK_base]
name=Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/UEK/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0
 
[el5_unsupported]
name=Productivity Applications for Enterprise Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/unsupported/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=0
 

How to Uninstall or Remove Oracle Linux

There is not an option to “uninstall” Oracle Linux, although there are many ways to remove Oracle Linux from a system. The method you select to remove Oracle Linux or Red Hat Enterprise Linux from a system will depend on your organizations security requirements. For example, if the data on the hard drive needs to be securely deleted, formatting or re-partitioning the hard drive will not completely remove the data from the disks. To completely wipe Oracle Linux or Red Hat Enterprise Linux as well as the data from the hard disks, boot the system using data destruction application like Darik's Boot and Nuke (DBAN) and wipe all of the disks. If the data on the hard drive does not need to be securely deleted, you could a) delete all the files on the disks b) format or re-partition the hard drives c) uninstall the bootloader and d) install another operating system on top of the existing one.
 
List 3 shows several of the options to remove Oracle Linux from a system.
  • Boot the system using data destruction application like Darik's Boot and Nuke (DBAN) and wipe all of the disks.
  • Delete all the files on the disks, i.e. type “rm -rf /” as root.
  • Format or delete the partitions.
  • Uninstall the bootloader.
  • Install another operating system on top of Oracle Linux or Red Hat Enterprise Linux.
 
Document Created: 06/22/11
Last Update: 04/29/12
 
Copyright © 2015 Mokum Solutions, Inc. All rights reserved.
Distribution of the Oracle Cloud Cookbook or derivative of the work in any form is prohibited unless prior permission is obtained from the copyright holder.