Sun Microsystems, Inc.  Sun System Handbook - ISO 4.1 October 2012 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-71-1461798.1
Update Date:2012-06-26
Keywords:

Solution Type  Technical Instruction Sure

Solution  1461798.1 :   How to download Linux RPM's directly on the Oracle Database Appliance (ODA)  


Related Items
  • Oracle Database Appliance
  •  
  • Oracle Appliance Kit
  •  
Related Categories
  • PLA-Support>Database Technology>Engineered Systems>Oracle Database Appliance>DB: ODA_EST
  •  
  • .Old GCS Categories>ST>Server>Engineered Systems>Oracle Database Appliance>Linux OS
  •  


Downloading RPM's on the Oracle Database Appliance

Applies to:

Oracle Appliance Kit - Version 2.2.0.0 and later
Oracle Database Appliance - Version Not Applicable and later
Linux x86-64

Goal

Allow users of the Oracle Database Appliance to download Linux RPMs directly on the ODA.

Fix

 

Warning #1: Do not setup the yum repository on the Oracle Database Appliance.
Reason: This is a pre-cautionary measure to prevent someone from running the yum update command that will update all RPMs and render the machine inoperable.
  
Warning #2: RPMs with complex dependencies should not be installed. Most packages that come with the Linux distributions contain one or more dependencies. The yum deplist <package_name> command can be used to determine the RPM dependencies. If the dependency requires updated versions of packages that are already installed on your Oracle Database Appliance, then DO NOT install any RPMs and open an SR with Oracle Support.
Reason: When dependencies exist, the installation of new packages may upgrade or downgrade the existing standard packages on Oracle Database Appliance. This can cause Oracle Database Appliance components (such as, OAK, MPT2SAS, or Grid Infrastructure) to fail. When in doubt, open a Service Request and ask Oracle Support.

 

Downloading RPMs on the Oracle Database Appliance

 

The following steps are only valid for use on the Oracle Database Appliance.  The Oracle Database Appliance must be able to access the internet to download the necessary RPMs.

 


To download RPMs on the Oracle Database Appliance download the file ODARPM_Config.zip and copy it to the Oracle Database Appliance.

(This download doesn't work when using the flash mode of My Oracle Support, so please, use the HTML version)

 

1. create a odarpm directory in /opt/oracle/oak

            # mkdir /opt/oracle/oak/odarpm

2. copy the ODARPM_Config.zip to /opt/oracle/oak/odarpm

            # cp ODARPM_Config.zip /opt/oracle/oak/odarpm/

3. unzip the ODARPM_Config.zip in the /opt/oracle/oak/odarpm directory

            # cd /opt/oracle/oak/odarpm

            # unzip ODARPM_Config.zip

 

4. Make sure the yumsetup and getrpm files have executable privilages, if not execute the following:

    # chmod 744 yumsetup getrpm

5. Execute the yumsetup utility, this will configure yum for the Oracle Database Appliance and only needs to be executedd once.

            cd /opt/oracle/oak/odarpm

            ./yumsetup

 

6. To download Lunix RPMs to the ODA box execute the getrpm file with the RPM name

            cd /opt/oracle/oak/odarpm

            ./getrpm [RPM_NAME]

Example:

            ./getrpm sendmail-doc

 

Note: Before installing a RPM, you should verify that the RPM does not have complex dependencies.  RPMs with complex dependencies should not be installed.  Most packages that come with the Linux distributions contain one or more dependencies.  The yum deplist <package_name> command can be used to determine the RPM dependencies.  If the dependency requires updated versions of packages that are already installed on your Oracle Database Appliance, then DO NOT install any RPMs and open an SR with Oracle Support.

 For Example:

# yum deplist sendmail-doc-8.13.8-8.1.el5_7.x86_64.rpm         Note: complete RPM name must be specified in the command line.
Loaded plugins: downloadonly, security
Finding dependencies:
package: sendmail-doc.x86_64 8.13.8-8.1.el5_7
dependency: sendmail = 8.13.8-8.1.el5_7
Unsatisfied dependency

The above output shows a dependency on sendmail version 8.13.8-8.1.el5_7.  Using the command below it can be verified that the required dependency is currently install in the ODA environment.

# rpm -qa | grep sendmail
sendmail-8.13.8-8.1.el5_7

Using the above example the sendmail-doc RPM, is acceptable to install on the Oracle Database Appliance.

Any example of RPMs with complex dependencies is below.  This RPM is dependancy list is complex, because it requires various glibc updates and additional packages.  Do Not install RPMs that have complex dependencies.  Open an SR with Oracle Support to verify if the RPM can be installed.

# yum deplist OpenIPMI-python-2.0.16-12.el5.x86_64.rpm
Loaded plugins: downloadonly, security
Finding dependencies:
package: OpenIPMI-python.x86_64 2.0.16-12.el5
dependency: python(abi) = 2.4
Unsatisfied dependency
dependency: libc.so.6(GLIBC_2.3.4)(64bit)
Unsatisfied dependency
dependency: libOpenIPMIutils.so.0()(64bit)
Unsatisfied dependency
dependency: libc.so.6(GLIBC_2.3)(64bit)
Unsatisfied dependency
dependency: libc.so.6(GLIBC_2.4)(64bit)
Unsatisfied dependency
dependency: libc.so.6()(64bit)
Unsatisfied dependency
dependency: libOpenIPMI.so.0()(64bit)
Unsatisfied dependency
dependency: rtld(GNU_HASH)
Unsatisfied dependency
dependency: OpenIPMI-libs = 2.0.16-12.el5
Unsatisfied dependency
dependency: libOpenIPMIcmdlang.so.0()(64bit)
Unsatisfied dependency
dependency: libOpenIPMIglib.so.0()(64bit)
Unsatisfied dependency
dependency: libOpenIPMIpthread.so.0()(64bit)
Unsatisfied dependency
dependency: libc.so.6(GLIBC_2.2.5)(64bit)
Unsatisfied dependency
dependency: libOpenIPMItcl.so.0()(64bit)
Unsatisfied dependency

8. To install a rpm execute

            rpm -ivh [/PATH/RPM_NAME]

            rpm -ivh /opt/oracle/oak/pkgrepos/rpms/sendmail-doc-8.13.8-8.1.el5_7.x86_64.rpm

 

To Remove a RPM execute

            rpm -ev sendmail-doc

 

To download and view a complete list of RPMs installed on the Oracle Database Appliance (oak 2.2.0.0.0) base release click here.

If you are not on Oracle Database Appliance follow Note 1461818.1 How to use a Linux machine as your RPM repository to download and apply RPMs on the Oracle Database Appliance (ODA)

References

<NOTE:1461818.1> - How to use a separate Linux machine as your RPM repository to download and apply RPM's on the Oracle Database Appliance (ODA)

Attachments
This solution has no attachment
  Copyright © 2012 Sun Microsystems, Inc.  All rights reserved.
 Feedback