Beruflich Dokumente
Kultur Dokumente
Using a Local Repository
Alejandro Vargas | Principal Support Consultant
Oracle Advanced Customer Services
Table of Contents
Summary...............................................................................................................................................2
1) Create a directory to hold the rpm's..................................................................................................2
2) Go to the Server directory on the Linux cd.......................................................................................2
3) Copy all rpm's from the install disk to the directory you created before..........................................2
4) Install the Yum Repository tool........................................................................................................3
5) Execute the create repository command...........................................................................................3
6) Create a config file for this repository..............................................................................................3
7) Install the oraclevalidated rpm.........................................................................................................3
Install Oracle Validated rpm
Using a Local Repository
Summary
Within the steps required to install Oracle on Linux you need to take care of Installing all the rpm's
required by Oracle, and their dependencies, create the Oracle user account and groups and setup the
parameters for the kernel.
All of this can be automatized by installing a single rpm that is distributed by Oracle, the Oracle
Validated rpm.
On the Oracle Enterprise Linux 5.5 distribution disk it is included the OracleValidated rpm and also
the ASMLib related rpms.
The rpm can be installed as part of the Linux install process, as explained on Sergio Leunissen post
from 2009 http://blogs.oracle.com/sergio/oraclevalidated_rpm/
Another option, if you have your server connected to the Internet, is to run the install using Yum; it will
install the oraclevalidated rpm and download all required dependencies.
Yet another option, if you don't have access to the Internet, is to setup a local or nfs mounted repository
with all rpm's contained on the Linux distribution disk on it.
In this document I'm showing an example of the steps required to setup a local rpm repository and
install the OracleValidated rpm and it's dependencies from it.
1) Create a directory to hold the rpm's
[root@oel0 ~]# mkdir /oel5repository
2) Go to the Server directory on the Linux cd
[root@oel0 ~]# cd "/media/Enterprise Linux dvd 20100405/Server"
3) Copy all rpm's from the install disk to the directory you created before
[root@oel0 Server]# tar cvf . | (cd /oel5repository; tar xvfBp )
Install Oracle Validated rpm
Using a Local Repository
4) Install the Yum Repository tool
5) Execute the create repository command
6) Create a config file for this repository
[root@oel0 ~]# vi /etc/yum.repos.d/oel5.repo
[localrepo]
name=My Repository
baseurl=file:///oel5repository
enabled=1
gpgcheck=0
7) Install the oraclevalidated rpm
[root@oel0 ~]# ls /oel5repository/oraclevalidated*
/oel5repository/oraclevalidated1.0.022.el5.i386.rpm
[root@oel0 oel5repository]# yum install oraclevalidated
Loaded plugins: security
localrepo | 951 B 00:00
localrepo/primary | 842 kB 00:00
localrepo 2352/2352
Setting up Install Process
Resolving Dependencies
> Running transaction check
> Package oraclevalidated.i386 0:1.0.022.el5 set to be updated
> Processing Dependency: glibcheaders for package: oraclevalidated
> Processing Dependency: kernelheaders for package: oraclevalidated
> Processing Dependency: gcc for package: oraclevalidated
> Processing Dependency: sysstat for package: oraclevalidated
> Processing Dependency: unixODBC for package: oraclevalidated
> Processing Dependency: libaiodevel for package: oraclevalidated
Install Oracle Validated rpm
Using a Local Repository
> Processing Dependency: gccc++ for package: oraclevalidated
> Processing Dependency: compatgcc34c++ for package: oraclevalidated
> Processing Dependency: unixODBCdevel for package: oraclevalidated
> Processing Dependency: compatdb for package: oraclevalidated
> Processing Dependency: elfutilslibelfdevel for package: oraclevalidated
> Processing Dependency: libXp for package: oraclevalidated
> Processing Dependency: glibcdevel for package: oraclevalidated
> Processing Dependency: compatgcc34 for package: oraclevalidated
> Processing Dependency: gdb for package: oraclevalidated
> Processing Dependency: libstdc++devel for package: oraclevalidated
> Running transaction check
> Package compatdb.i386 0:4.2.525.1 set to be updated
> Package compatgcc34.i386 0:3.4.64 set to be updated
> Package compatgcc34c++.i386 0:3.4.64 set to be updated
> Package elfutilslibelfdevel.i386 0:0.1373.el5 set to be updated
> Processing Dependency: elfutilslibelfdevelstatici386 = 0.1373.el5 for package: elfutilslibelfdevel
> Package gcc.i386 0:4.1.248.el5 set to be updated
> Processing Dependency: libgomp >= 4.1.248.el5 for package: gcc
> Package gccc++.i386 0:4.1.248.el5 set to be updated
> Package gdb.i386 0:7.0.123.el5 set to be updated
> Package glibcdevel.i386 0:2.549 set to be updated
> Package glibcheaders.i386 0:2.549 set to be updated
> Package kernelheaders.i386 0:2.6.18194.0.0.0.3.el5 set to be updated
> Package libXp.i386 0:1.0.08.1.el5 set to be updated
> Package libaiodevel.i386 0:0.3.1065 set to be updated
> Package libstdc++devel.i386 0:4.1.248.el5 set to be updated
localrepo/filelists | 2.6 MB 00:00
> Package sysstat.i386 0:7.0.23.el5 set to be updated
> Package unixODBC.i386 0:2.2.117.1 set to be updated
> Package unixODBCdevel.i386 0:2.2.117.1 set to be updated
> Running transaction check
> Package elfutilslibelfdevelstatic.i386 0:0.1373.el5 set to be updated
> Package libgomp.i386 0:4.4.06.el5 set to be updated
> Finished Dependency Resolution
Dependencies Resolved
=================================================================================================================
Package Arch Version Repository Size
=================================================================================================================
Installing:
oraclevalidated i386 1.0.022.el5 localrepo 15 k
Installing for dependencies:
compatdb i386 4.2.525.1 localrepo 1.7 M
compatgcc34 i386 3.4.64 localrepo 4.1 M
compatgcc34c++ i386 3.4.64 localrepo 11 M
elfutilslibelfdevel i386 0.1373.el5 localrepo 24 k
elfutilslibelfdevelstatic i386 0.1373.el5 localrepo 66 k
gcc i386 4.1.248.el5 localrepo 5.2 M
gccc++ i386 4.1.248.el5 localrepo 3.4 M
gdb i386 7.0.123.el5 localrepo 2.3 M
glibcdevel i386 2.549 localrepo 2.0 M
glibcheaders i386 2.549 localrepo 614 k
kernelheaders i386 2.6.18194.0.0.0.3.el5 localrepo 1.1 M
libXp i386 1.0.08.1.el5 localrepo 22 k
libaiodevel i386 0.3.1065 localrepo 12 k
libgomp i386 4.4.06.el5 localrepo 70 k
libstdc++devel i386 4.1.248.el5 localrepo 2.9 M
sysstat i386 7.0.23.el5 localrepo 170 k
unixODBC i386 2.2.117.1 localrepo 830 k
unixODBCdevel i386 2.2.117.1 localrepo 743 k
Transaction Summary
===============================================================================================================
Install 19 Package(s)
Upgrade 0 Package(s)
Total download size: 36 M
Install Oracle Validated rpm
Using a Local Repository
Is this ok [y/N]: y
Downloading Packages:
Total 1.6 GB/s | 36 MB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : unixODBC 1/19
Installing : libXp 2/19
Installing : compatdb 3/19
Installing : gdb 4/19
Installing : libgomp 5/19
Installing : sysstat 6/19
Installing : libstdc++devel 7/19
Installing : kernelheaders 8/19
Installing : glibcheaders 9/19
Installing : glibcdevel 10/19
Installing : unixODBCdevel 11/19
Installing : libaiodevel 12/19
Installing : compatgcc34 13/19
Installing : gcc 14/19
Installing : gccc++ 15/19
Installing : compatgcc34c++ 16/19
Installing : elfutilslibelfdevel 17/19
Installing : elfutilslibelfdevelstatic 18/19
Installing : oraclevalidated 19/19
1
Installed:
oraclevalidated.i386 0:1.0.022.el5
Dependency Installed:
compatdb.i386 0:4.2.525.1
compatgcc34.i386 0:3.4.64
compatgcc34c++.i386 0:3.4.64
elfutilslibelfdevel.i386 0:0.1373.el5
elfutilslibelfdevelstatic.i386 0:0.1373.el5
gcc.i386 0:4.1.248.el5
gccc++.i386 0:4.1.248.el5
gdb.i386 0:7.0.123.el5
glibcdevel.i386 0:2.549
glibcheaders.i386 0:2.549
kernelheaders.i386 0:2.6.18194.0.0.0.3.el5
libXp.i386 0:1.0.08.1.el5
libaiodevel.i386 0:0.3.1065 libgomp.i386 0:4.4.06.el5
libstdc++devel.i386 0:4.1.248.el5
sysstat.i386 0:7.0.23.el5
unixODBC.i386 0:2.2.117.1
unixODBCdevel.i386 0:2.2.117.1
Complete!
Now you can install any Oracle Product on this server!