Como instalar o oracle-validated RPM no Red Hat el5

This post is also available in: English

O pacote RPM oracle-validated já faz todos os preparativos para você de dependências para uma instalação do Oracle em um Enterprise Linux 5. No entanto, as últimas versões deste pacote vêm exigindo como pré-requisito o pacote kernel-uek, que na prática o limita apenas na instalação no Oracle Linux 5. Neste tópico, vamos aprender como instalá-lo em uma máquina rodando Red Hat EL5.

Antes de mais nada, precisaremos alterar o RPM do oracle-validated e comentar a linha que faz a referência a dependência do kernel-uek.

Para alterá-los, precisamos instalar os pacotes rpm-build rpmdevtools:

yum install rpm-build rpmdevtools

[root@oracleol5 ~]# yum install rpm-build rpmdevtools
Loaded plugins: security
Setting up Install Process
No package rpmdevtools available.
Resolving Dependencies
--> Running transaction check
---> Package rpm-build.x86_64 0:4.4.2.3-28.el5_8 set to be updated
--> Processing Dependency: xz for package: rpm-build
--> Processing Dependency: elfutils for package: rpm-build
--> Running transaction check
---> Package elfutils.x86_64 0:0.137-3.el5 set to be updated
--> Processing Dependency: elfutils-libs-x86_64 = 0.137-3.el5 for package: elfutils
--> Processing Dependency: libdw.so.1(ELFUTILS_0.130)(64bit) for package: elfutils
--> Processing Dependency: libdw.so.1(ELFUTILS_0.126)(64bit) for package: elfutils
--> Processing Dependency: libdw.so.1(ELFUTILS_0.127)(64bit) for package: elfutils
--> Processing Dependency: libasm.so.1(ELFUTILS_1.0)(64bit) for package: elfutils
--> Processing Dependency: libdw.so.1(ELFUTILS_0.122)(64bit) for package: elfutils
--> Processing Dependency: libdw.so.1()(64bit) for package: elfutils
--> Processing Dependency: libasm.so.1()(64bit) for package: elfutils
---> Package xz.x86_64 0:4.999.9-0.3.beta.20091007git.el5 set to be updated
--> Processing Dependency: xz-libs = 4.999.9-0.3.beta.20091007git.el5 for package: xz
--> Processing Dependency: liblzma.so.0()(64bit) for package: xz
--> Running transaction check
---> Package elfutils-libs.x86_64 0:0.137-3.el5 set to be updated
---> Package xz-libs.x86_64 0:4.999.9-0.3.beta.20091007git.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================================================================================
Installing:
rpm-build x86_64 4.4.2.3-28.el5_8 rhel-updaterepo 303 k
Installing for dependencies:
elfutils x86_64 0.137-3.el5 rhel-baserepo 216 k
elfutils-libs x86_64 0.137-3.el5 rhel-baserepo 183 k
xz x86_64 4.999.9-0.3.beta.20091007git.el5 rhel-baserepo 146 k
xz-libs x86_64 4.999.9-0.3.beta.20091007git.el5 rhel-baserepo 95 k

Transaction Summary
======================================================================================================================================================================================================
Install 5 Package(s)
Upgrade 0 Package(s)

Total download size: 942 k
Is this ok [y/N]: y
Downloading Packages:
(1/5): xz-libs-4.999.9-0.3.beta.20091007git.el5.x86_64.rpm | 95 kB 00:00
(2/5): xz-4.999.9-0.3.beta.20091007git.el5.x86_64.rpm | 146 kB 00:00
(3/5): elfutils-libs-0.137-3.el5.x86_64.rpm | 183 kB 00:01
(4/5): elfutils-0.137-3.el5.x86_64.rpm | 216 kB 00:00
(5/5): rpm-build-4.4.2.3-28.el5_8.x86_64.rpm | 303 kB 00:00
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 271 kB/s | 942 kB 00:03
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : xz-libs 1/5
Installing : xz 2/5
Installing : elfutils-libs 3/5
Installing : elfutils 4/5
Installing : rpm-build 5/5

Installed:
rpm-build.x86_64 0:4.4.2.3-28.el5_8

Dependency Installed:
elfutils.x86_64 0:0.137-3.el5 elfutils-libs.x86_64 0:0.137-3.el5 xz.x86_64 0:4.999.9-0.3.beta.20091007git.el5 xz-libs.x86_64 0:4.999.9-0.3.beta.20091007git.el5

Complete!

Se você não conseguir encontrar no seu repositório o pacote rpmdevtools (como no meu caso), aconselho procurar no Google os seguintes pacotes e instalá-los utilizando o yum install:
rpmdevtools-6.8-1.el5.noarch.rpm
->fakeroot-1.12.4-2.el5.x86_64.rpm
->fakeroot-libs-1.12.4-2.el5.x86_64.rpm

yum install fakeroot-libs-1.12.4-2.el5.x86_64.rpm --nogpgcheck (apenas se você não tiver instalado ainda o rpmdevtools)

[root@oracleol5 ~]# yum install fakeroot-libs-1.12.4-2.el5.x86_64.rpm --nogpgcheck
Loaded plugins: security
Setting up Install Process
Examining fakeroot-libs-1.12.4-2.el5.x86_64.rpm: fakeroot-libs-1.12.4-2.el5.x86_64
Marking fakeroot-libs-1.12.4-2.el5.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package fakeroot-libs.x86_64 0:1.12.4-2.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================================================================================
Installing:
fakeroot-libs x86_64 1.12.4-2.el5 /fakeroot-libs-1.12.4-2.el5.x86_64 78 k

Transaction Summary
======================================================================================================================================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)

Total size: 78 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : fakeroot-libs 1/1

Installed:
fakeroot-libs.x86_64 0:1.12.4-2.el5

Complete!

yum install fakeroot-1.12.4-2.el5.x86_64.rpm --nogpgcheck (apenas se você não tiver instalado ainda o rpmdevtools)

[root@oracleol5 ~]# yum install fakeroot-1.12.4-2.el5.x86_64.rpm --nogpgcheck
Loaded plugins: security
Setting up Install Process
Examining fakeroot-1.12.4-2.el5.x86_64.rpm: fakeroot-1.12.4-2.el5.x86_64
Marking fakeroot-1.12.4-2.el5.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package fakeroot.x86_64 0:1.12.4-2.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================================================================================
Installing:
fakeroot x86_64 1.12.4-2.el5 /fakeroot-1.12.4-2.el5.x86_64 167 k

Transaction Summary
======================================================================================================================================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)

Total size: 167 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : fakeroot 1/1

Installed:
fakeroot.x86_64 0:1.12.4-2.el5

Complete!

yum install rpmdevtools-6.8-1.el5.noarch.rpm --nogpgcheck

[root@oracleol5 ~]# yum install rpmdevtools-6.8-1.el5.noarch.rpm --nogpgcheck
Loaded plugins: security
Setting up Install Process
Examining rpmdevtools-6.8-1.el5.noarch.rpm: rpmdevtools-6.8-1.el5.noarch
Marking rpmdevtools-6.8-1.el5.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package rpmdevtools.noarch 0:6.8-1.el5 set to be updated
--> Processing Dependency: gcc for package: rpmdevtools
--> Processing Dependency: gcc-c++ for package: rpmdevtools
--> Processing Dependency: redhat-rpm-config for package: rpmdevtools
--> Running transaction check
---> Package gcc.x86_64 0:4.1.2-54.el5 set to be updated
--> Processing Dependency: cpp = 4.1.2-54.el5 for package: gcc
--> Processing Dependency: libgcc >= 4.1.2-54.el5 for package: gcc
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc
---> Package gcc-c++.x86_64 0:4.1.2-54.el5 set to be updated
--> Processing Dependency: libstdc++ = 4.1.2-54.el5 for package: gcc-c++
--> Processing Dependency: libstdc++-devel = 4.1.2-54.el5 for package: gcc-c++
---> Package redhat-rpm-config.noarch 0:8.0.45-32.el5 set to be updated
--> Running transaction check
---> Package cpp.x86_64 0:4.1.2-54.el5 set to be updated
---> Package glibc-devel.x86_64 0:2.5-107.el5_9.4 set to be updated
--> Processing Dependency: glibc = 2.5-107.el5_9.4 for package: glibc-devel
--> Processing Dependency: glibc-headers = 2.5-107.el5_9.4 for package: glibc-devel
--> Processing Dependency: glibc-headers for package: glibc-devel
---> Package libgcc.x86_64 0:4.1.2-54.el5 set to be updated
---> Package libstdc++.i386 0:4.1.2-54.el5 set to be updated
---> Package libstdc++.x86_64 0:4.1.2-54.el5 set to be updated
---> Package libstdc++-devel.x86_64 0:4.1.2-54.el5 set to be updated
--> Running transaction check
---> Package glibc-devel.x86_64 0:2.5-107.el5_9.4 set to be updated
--> Processing Dependency: glibc = 2.5-107.el5_9.4 for package: glibc-devel
---> Package glibc-headers.x86_64 0:2.5-107.el5_9.4 set to be updated
--> Processing Dependency: glibc = 2.5-107.el5_9.4 for package: glibc-headers
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers
--> Processing Dependency: kernel-headers for package: glibc-headers
--> Running transaction check
---> Package glibc-devel.x86_64 0:2.5-107.el5_9.4 set to be updated
--> Processing Dependency: glibc = 2.5-107.el5_9.4 for package: glibc-devel
---> Package glibc-headers.x86_64 0:2.5-107.el5_9.4 set to be updated
--> Processing Dependency: glibc = 2.5-107.el5_9.4 for package: glibc-headers
---> Package kernel-headers.x86_64 0:2.6.18-348.4.1.el5 set to be updated
--> Finished Dependency Resolution
glibc-devel-2.5-107.el5_9.4.x86_64 from rhel-baserepo has depsolving problems
--> Missing Dependency: glibc = 2.5-107.el5_9.4 is needed by package glibc-devel-2.5-107.el5_9.4.x86_64 (rhel-baserepo)
glibc-headers-2.5-107.el5_9.4.x86_64 from rhel-baserepo has depsolving problems
--> Missing Dependency: glibc = 2.5-107.el5_9.4 is needed by package glibc-headers-2.5-107.el5_9.4.x86_64 (rhel-baserepo)
Error: Missing Dependency: glibc = 2.5-107.el5_9.4 is needed by package glibc-devel-2.5-107.el5_9.4.x86_64 (rhel-baserepo)
Error: Missing Dependency: glibc = 2.5-107.el5_9.4 is needed by package glibc-headers-2.5-107.el5_9.4.x86_64 (rhel-baserepo)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.

No meu caso, ainda ficaram faltando alguns pacotes para instalar o rpmdevtools que não existia no meu repositório do Red Hat. Para conseguí-los, vamos adicionar o repositório do Oracle OL5 e tentar novamente:

[root@oracleol5 ~]# cd /etc/yum.repos.d/
[root@oracleol5 yum.repos.d]# wget http://public-yum.oracle.com/public-yum-el5.repo
--2013-05-17 11:53:37-- http://public-yum.oracle.com/public-yum-el5.repo
Connecting to 10.1.1.2:1111... connected.
Proxy request sent, awaiting response... 200 OK
Length: 4220 (4.1K) [text/plain]
Saving to: `public-yum-el5.repo'

100%[============================================================================================================================================================>] 4,220 --.-K/s in 0s

2013-05-17 11:53:37 (8.58 MB/s) - `public-yum-el5.repo' saved [4220/4220]
[root@oracleol5 ~]# yum install rpmdevtools-6.8-1.el5.noarch.rpm --nogpgcheck
Loaded plugins: security
Setting up Install Process
Examining rpmdevtools-6.8-1.el5.noarch.rpm: rpmdevtools-6.8-1.el5.noarch
Marking rpmdevtools-6.8-1.el5.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package rpmdevtools.noarch 0:6.8-1.el5 set to be updated
--> Processing Dependency: gcc for package: rpmdevtools
--> Processing Dependency: gcc-c++ for package: rpmdevtools
--> Processing Dependency: redhat-rpm-config for package: rpmdevtools
--> Running transaction check
---> Package gcc.x86_64 0:4.1.2-54.el5 set to be updated
--> Processing Dependency: cpp = 4.1.2-54.el5 for package: gcc
--> Processing Dependency: libgcc >= 4.1.2-54.el5 for package: gcc
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc
---> Package gcc-c++.x86_64 0:4.1.2-54.el5 set to be updated
--> Processing Dependency: libstdc++ = 4.1.2-54.el5 for package: gcc-c++
--> Processing Dependency: libstdc++-devel = 4.1.2-54.el5 for package: gcc-c++
---> Package redhat-rpm-config.noarch 0:8.0.45-32.0.1.el5 set to be updated
--> Running transaction check
---> Package cpp.x86_64 0:4.1.2-54.el5 set to be updated
---> Package glibc-devel.x86_64 0:2.5-107.el5_9.4 set to be updated
--> Processing Dependency: glibc = 2.5-107.el5_9.4 for package: glibc-devel
--> Processing Dependency: glibc-headers = 2.5-107.el5_9.4 for package: glibc-devel
--> Processing Dependency: glibc-headers for package: glibc-devel
---> Package libgcc.i386 0:4.1.2-54.el5 set to be updated
---> Package libgcc.x86_64 0:4.1.2-54.el5 set to be updated
---> Package libstdc++.i386 0:4.1.2-54.el5 set to be updated
---> Package libstdc++.x86_64 0:4.1.2-54.el5 set to be updated
---> Package libstdc++-devel.x86_64 0:4.1.2-54.el5 set to be updated
--> Running transaction check
--> Processing Dependency: glibc = 2.5-81.el5_8.7 for package: nscd
---> Package glibc.i686 0:2.5-107.el5_9.4 set to be updated
--> Processing Dependency: glibc-common = 2.5-107.el5_9.4 for package: glibc
---> Package glibc.x86_64 0:2.5-107.el5_9.4 set to be updated
---> Package glibc-headers.x86_64 0:2.5-107.el5_9.4 set to be updated
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers
--> Processing Dependency: kernel-headers for package: glibc-headers
--> Running transaction check
---> Package glibc-common.x86_64 0:2.5-107.el5_9.4 set to be updated
---> Package kernel-headers.x86_64 0:2.6.18-348.4.1.0.1.el5 set to be updated
---> Package nscd.x86_64 0:2.5-107.el5_9.4 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================================================================================
Installing:
rpmdevtools noarch 6.8-1.el5 /rpmdevtools-6.8-1.el5.noarch 129 k
Installing for dependencies:
gcc x86_64 4.1.2-54.el5 rhel-baserepo 5.3 M
gcc-c++ x86_64 4.1.2-54.el5 rhel-baserepo 3.8 M
glibc-devel x86_64 2.5-107.el5_9.4 rhel-baserepo 2.4 M
glibc-headers x86_64 2.5-107.el5_9.4 rhel-baserepo 601 k
kernel-headers x86_64 2.6.18-348.4.1.0.1.el5 el5_latest 1.5 M
libstdc++-devel x86_64 4.1.2-54.el5 rhel-baserepo 2.8 M
redhat-rpm-config noarch 8.0.45-32.0.1.el5 el5_latest 56 k
Updating for dependencies:
cpp x86_64 4.1.2-54.el5 el5_latest 2.9 M
glibc i686 2.5-107.el5_9.4 el5_latest 5.4 M
glibc x86_64 2.5-107.el5_9.4 el5_latest 4.8 M
glibc-common x86_64 2.5-107.el5_9.4 el5_latest 16 M
libgcc i386 4.1.2-54.el5 el5_latest 97 k
libgcc x86_64 4.1.2-54.el5 el5_latest 100 k
libstdc++ i386 4.1.2-54.el5 el5_latest 363 k
libstdc++ x86_64 4.1.2-54.el5 el5_latest 354 k
nscd x86_64 2.5-107.el5_9.4 el5_latest 176 k

Transaction Summary
======================================================================================================================================================================================================
Install 8 Package(s)
Upgrade 9 Package(s)

Total size: 47 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : libgcc 1/26
Updating : libgcc 2/26
Updating : glibc-common 3/26
Updating : glibc 4/26
Updating : libstdc++ 5/26
Updating : cpp 6/26
Installing : libstdc++-devel 7/26
Installing : kernel-headers 8/26
Installing : glibc-headers 9/26
Installing : glibc-devel 10/26
Installing : redhat-rpm-config 11/26
Updating : nscd 12/26
Updating : glibc 13/26
Updating : libstdc++ 14/26
Installing : gcc 15/26
Installing : gcc-c++ 16/26
Installing : rpmdevtools 17/26
Cleanup : libgcc 18/26
Cleanup : libstdc++ 19/26
Cleanup : libstdc++ 20/26
Cleanup : glibc 21/26
Cleanup : nscd 22/26
Cleanup : glibc 23/26
Cleanup : libgcc 24/26
Cleanup : glibc-common 25/26
Cleanup : cpp 26/26

Installed:
rpmdevtools.noarch 0:6.8-1.el5

Dependency Installed:
gcc.x86_64 0:4.1.2-54.el5 gcc-c++.x86_64 0:4.1.2-54.el5 glibc-devel.x86_64 0:2.5-107.el5_9.4 glibc-headers.x86_64 0:2.5-107.el5_9.4
kernel-headers.x86_64 0:2.6.18-348.4.1.0.1.el5 libstdc++-devel.x86_64 0:4.1.2-54.el5 redhat-rpm-config.noarch 0:8.0.45-32.0.1.el5

Dependency Updated:
cpp.x86_64 0:4.1.2-54.el5 glibc.i686 0:2.5-107.el5_9.4 glibc.x86_64 0:2.5-107.el5_9.4 glibc-common.x86_64 0:2.5-107.el5_9.4 libgcc.i386 0:4.1.2-54.el5 libgcc.x86_64 0:4.1.2-54.el5
libstdc++.i386 0:4.1.2-54.el5 libstdc++.x86_64 0:4.1.2-54.el5 nscd.x86_64 0:2.5-107.el5_9.4

Complete!

Ótimo, agora temos a suite pronta para editar o RPM e remover a dependência do kernel-uek na nossa instalação Red Hat.

Vamos criar um usuário para efetuar a alteração do RPM, nunca faça esse tipo de alteração como root:

[root@oracleol5 ~]# useradd rpmblduser -p rpmblduser -m -s /bin/bash

Entre como o usuário rpmblduser e baixe a última versão do SOURCE do RPM: atual (oracle-validated-1.1.0-17.el5.src.rpm). Buscar no site do RPMs do Oracle Linux.

[root@oracleol5 ~]# su - rpmblduser
[rpmblduser@oracleol5 ~]$ wget http://public-yum.oracle.com/repo/OracleLinux/OL5/latest/x86_64/oracle-validated-1.1.0-17.el5.src.rpm

Dentro da home do rpmblduser, crie a árvore de alteração:

[rpmblduser@oracleol5 ~]$ rpmdev-setuptree
[rpmblduser@oracleol5 ~]$ ls -l rpmbuild/
total 20
drwxrwxr-x 2 rpmblduser rpmblduser 4096 May 17 13:53 BUILD
drwxrwxr-x 2 rpmblduser rpmblduser 4096 May 17 13:53 RPMS
drwxrwxr-x 2 rpmblduser rpmblduser 4096 May 17 13:53 SOURCES
drwxrwxr-x 2 rpmblduser rpmblduser 4096 May 17 13:53 SPECS
drwxrwxr-x 2 rpmblduser rpmblduser 4096 May 17 13:53 SRPMS

Crie a árvore de configuração do RPM:

[rpmblduser@oracleol5 ~]$ rpm -ivh oracle-validated-1.1.0-17.el5.src.rpm
1:oracle-validated ########################################### [100%]

Edite o spec do RPM, comentando a linha que faz a dependência com o UEK.

Antes:  Requires:irqbalance >= 2:0.55-16, kernel-uek >= 2.6.32
Depois: Requires:irqbalance >= 2:0.55-16

[rpmblduser@oracleol5 ~]$ vim rpmbuild/SPECS/oracle-validated.spec

Recrie o RPM:

[rpmblduser@oracleol5 ~]$ rpmbuild -ba rpmbuild/SPECS/oracle-validated.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.61442
+ umask 022
+ cd /home/rpmblduser/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ echo RPM_BUILD_ROOT=/home/rpmblduser/rpmbuild/BUILD/oracle-validated-1.1.0-root
RPM_BUILD_ROOT=/home/rpmblduser/rpmbuild/BUILD/oracle-validated-1.1.0-root
+ cd /home/rpmblduser/rpmbuild/BUILD
+ rm -rf oracle-validated-1.1.0
+ /usr/bin/gzip -dc /home/rpmblduser/rpmbuild/SOURCES/oracle-validated-1.1.0.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd oracle-validated-1.1.0
++ /usr/bin/id -u
+ '[' 501 = 0 ']'
++ /usr/bin/id -u
+ '[' 501 = 0 ']'
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (oracle-validated-1.0.0-11g.patch):'
Patch #0 (oracle-validated-1.0.0-11g.patch):
+ patch -p1 -s
+ echo 'Patch #1 (oracle-validated-1.0.0-hangcheck.patch):'
Patch #1 (oracle-validated-1.0.0-hangcheck.patch):
+ patch -p1 -s
+ echo 'Patch #2 (oracle-validated-1.0.0-awk-fixes.patch):'
Patch #2 (oracle-validated-1.0.0-awk-fixes.patch):
+ patch -p1 -s
+ echo 'Patch #3 (oracle-validated-1.0.0-miscellaneous-fixes.patch):'
Patch #3 (oracle-validated-1.0.0-miscellaneous-fixes.patch):
+ patch -p1 -s
+ echo 'Patch #4 (oracle-validated-1.0.0-bind-utils-numa-fixes.patch):'
Patch #4 (oracle-validated-1.0.0-bind-utils-numa-fixes.patch):
+ patch -p1 -s
+ echo 'Patch #5 (oracle-validated-1.0.0-disable-login-oracle-user.patch):'
Patch #5 (oracle-validated-1.0.0-disable-login-oracle-user.patch):
+ patch -p1 -s
+ echo 'Patch #6 (oracle-validated-1.0.0-disable-login-existing-oracle-user.patch):'
Patch #6 (oracle-validated-1.0.0-disable-login-existing-oracle-user.patch):
+ patch -p1 -s
+ echo 'Patch #7 (oracle-validated-1.0.0-id-check.patch):'
Patch #7 (oracle-validated-1.0.0-id-check.patch):
+ patch -p1 -s
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.61442
+ umask 022
+ cd /home/rpmblduser/rpmbuild/BUILD
+ cd oracle-validated-1.1.0
+ LANG=C
+ export LANG
+ unset DISPLAY
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.61442
+ umask 022
+ cd /home/rpmblduser/rpmbuild/BUILD
+ cd oracle-validated-1.1.0
+ LANG=C
+ export LANG
+ unset DISPLAY
+ rm -rf /home/rpmblduser/rpmbuild/BUILD/oracle-validated-1.1.0-root
+ mkdir -p -m 755 /home/rpmblduser/rpmbuild/BUILD/oracle-validated-1.1.0-root/etc/sysconfig/oracle-validated
+ mkdir -p -m 755 /home/rpmblduser/rpmbuild/BUILD/oracle-validated-1.1.0-root/usr/bin
+ mkdir -p -m 755 /home/rpmblduser/rpmbuild/BUILD/oracle-validated-1.1.0-root/etc/rc.d/init.d
+ install -m 755 oracle-validated-verify /home/rpmblduser/rpmbuild/BUILD/oracle-validated-1.1.0-root/etc/sysconfig/oracle-validated
+ install -m 755 oracle-validated-verify /home/rpmblduser/rpmbuild/BUILD/oracle-validated-1.1.0-root/usr/bin
+ install -m 644 oracle-validated.params /home/rpmblduser/rpmbuild/BUILD/oracle-validated-1.1.0-root/etc/sysconfig/oracle-validated
+ install -m 755 oraclevalidated /home/rpmblduser/rpmbuild/BUILD/oracle-validated-1.1.0-root/etc/rc.d/init.d
+ ln -f -s /etc/sysconfig/oracle-validated/oracle-validated-verify /home/rpmblduser/rpmbuild/BUILD/oracle-validated-1.1.0-root/usr/bin/oracle-validated-verify
+ /usr/lib/rpm/find-debuginfo.sh /home/rpmblduser/rpmbuild/BUILD/oracle-validated-1.1.0
+ /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/brp-python-bytecompile
+ /usr/lib/rpm/redhat/brp-java-repack-jars
Processing files: oracle-validated-1.1.0-17.el5
Provides: config(oracle-validated) = 1.1.0-17.el5 oracle-validated = 1.1.0
Requires(interp): /bin/sh /bin/sh /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(VersionedDependencies) <= 3.0.3-1
Requires(pre): /bin/sh
Requires(post): /bin/sh
Requires(preun): /bin/sh
Requires(postun): /bin/sh
Requires: /bin/bash /lib/security/pam_limits.so /usr/lib/gcc/x86_64-redhat-linux/4.1.1/libstdc++.a /usr/lib/libICE.so.6 /usr/lib/libSM.so.6 /usr/lib/libXt.so.6 /usr/lib/libXtst.so.6 /usr/lib/libaio.so /usr/lib/libc.so /usr/lib/libodbc.so.1 /usr/lib/libodbccr.so /usr/lib64/libaio.so /usr/lib64/libc.so /usr/lib64/libodbccr.so bc bind-utils binutils config(oracle-validated) = 1.1.0-17.el5 elfutils-libelf-devel ethtool gcc gcc-c++ glibc-common glibc-headers initscripts irqbalance >= 2:0.55-16 ksh libXp.so.6 libaio libaio-devel libaio.so.1 libaio.so.1()(64bit) libc.so.6 libc.so.6()(64bit) libgcc_s.so.1 libgcc_s.so.1()(64bit) libgdbm.so.2()(64bit) libodbc.so.1()(64bit) libstdc++.so.5 libstdc++.so.5()(64bit) libstdc++.so.6 libstdc++.so.6()(64bit) make module-init-tools oraclelinux-release pam procps sysstat unixODBC-devel util-linux >= 2.13-0.52.0.1.el5_4.1 xorg-x11-utils xorg-x11-xinit
Conflicts: kernel-utils
Obsoletes: kernel-utils
Processing files: oracle-validated-debuginfo-1.1.0-17.el5
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/rpmblduser/rpmbuild/BUILD/oracle-validated-1.1.0-root
warning: Could not canonicalize hostname: oracleol5
Wrote: /home/rpmblduser/rpmbuild/SRPMS/oracle-validated-1.1.0-17.el5.src.rpm
Wrote: /home/rpmblduser/rpmbuild/RPMS/x86_64/oracle-validated-1.1.0-17.el5.x86_64.rpm
Wrote: /home/rpmblduser/rpmbuild/RPMS/x86_64/oracle-validated-debuginfo-1.1.0-17.el5.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.53844
+ umask 022
+ cd /home/rpmblduser/rpmbuild/BUILD
+ cd oracle-validated-1.1.0
+ rm -rf /home/rpmblduser/rpmbuild/BUILD/oracle-validated-1.1.0-root
+ exit 0
[rpmblduser@oracleol5 ~]$ cp ~rpmblduser/rpmbuild/RPMS/x86_64/oracle-validated-1.1.0-17.el5.x86_64.rpm ./oracle-validated-nouek-1.1.0-17.el5.x86_64.rpm

Agora como root, instale o novo RPM gerado:

[root@oracleol5 ~]# yum install /home/rpmblduser/oracle-validated-nouek-1.1.0-17.el5.x86_64.rpm --nogpgcheck
Loaded plugins: security
Setting up Install Process
Examining oracle-validated-nouek-1.1.0-17.el5.x86_64.rpm: oracle-validated-1.1.0-17.el5.x86_64
Marking oracle-validated-nouek-1.1.0-17.el5.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package oracle-validated.x86_64 0:1.1.0-17.el5 set to be updated
--> Processing Dependency: irqbalance >= 2:0.55-16 for package: oracle-validated
--> Processing Dependency: /usr/lib/libaio.so for package: oracle-validated
Importing additional filelist information
--> Processing Dependency: /usr/lib/libc.so for package: oracle-validated
--> Processing Dependency: /usr/lib/libodbc.so.1 for package: oracle-validated
--> Processing Dependency: /usr/lib/libodbccr.so for package: oracle-validated
--> Processing Dependency: /usr/lib64/libaio.so for package: oracle-validated
--> Processing Dependency: /usr/lib64/libodbccr.so for package: oracle-validated
--> Processing Dependency: elfutils-libelf-devel for package: oracle-validated
--> Processing Dependency: libXp.so.6 for package: oracle-validated
--> Processing Dependency: libaio-devel for package: oracle-validated
--> Processing Dependency: oraclelinux-release for package: oracle-validated
--> Processing Dependency: sysstat for package: oracle-validated
--> Processing Dependency: unixODBC-devel for package: oracle-validated
--> Processing Dependency: libodbc.so.1()(64bit) for package: oracle-validated
--> Running transaction check
---> Package elfutils-libelf-devel.x86_64 0:0.137-3.el5 set to be updated
--> Processing Dependency: elfutils-libelf-devel-static-x86_64 = 0.137-3.el5 for package: elfutils-libelf-devel
---> Package glibc-devel.i386 0:2.5-107.el5_9.4 set to be updated
---> Package irqbalance.x86_64 2:0.55-17.el5 set to be updated
---> Package libXp.i386 0:1.0.0-8.1.el5 set to be updated
---> Package libaio-devel.i386 0:0.3.106-5 set to be updated
---> Package libaio-devel.x86_64 0:0.3.106-5 set to be updated
---> Package oraclelinux-release.x86_64 0:5-9.0.2 set to be updated
---> Package sysstat.x86_64 0:7.0.2-12.0.1.el5 set to be updated
---> Package unixODBC-devel.i386 0:2.2.11-10.el5 set to be updated
--> Processing Dependency: unixODBC = 2.2.11-10.el5 for package: unixODBC-devel
---> Package unixODBC-devel.x86_64 0:2.2.11-10.el5 set to be updated
---> Package unixODBC-libs.i386 0:2.2.11-10.el5 set to be updated
---> Package unixODBC-libs.x86_64 0:2.2.11-10.el5 set to be updated
--> Running transaction check
---> Package elfutils-libelf-devel-static.x86_64 0:0.137-3.el5 set to be updated
---> Package unixODBC.x86_64 0:2.2.11-10.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================================================================================
Installing:
oracle-validated x86_64 1.1.0-17.el5 /oracle-validated-nouek-1.1.0-17.el5.x86_64 34 k
Installing for dependencies:
elfutils-libelf-devel x86_64 0.137-3.el5 rhel-baserepo 25 k
elfutils-libelf-devel-static x86_64 0.137-3.el5 rhel-baserepo 64 k
glibc-devel i386 2.5-107.el5_9.4 rhel-baserepo 2.1 M
libXp i386 1.0.0-8.1.el5 rhel-baserepo 22 k
libaio-devel i386 0.3.106-5 rhel-baserepo 12 k
libaio-devel x86_64 0.3.106-5 rhel-baserepo 11 k
oraclelinux-release x86_64 5-9.0.2 el5_latest 2.8 k
sysstat x86_64 7.0.2-12.0.1.el5 el5_latest 188 k
unixODBC x86_64 2.2.11-10.el5 el5_latest 291 k
unixODBC-devel i386 2.2.11-10.el5 el5_latest 738 k
unixODBC-devel x86_64 2.2.11-10.el5 el5_latest 793 k
unixODBC-libs i386 2.2.11-10.el5 el5_latest 551 k
unixODBC-libs x86_64 2.2.11-10.el5 el5_latest 554 k
Updating for dependencies:
irqbalance x86_64 2:0.55-17.el5 el5_latest 21 k

Transaction Summary
======================================================================================================================================================================================================
Install 14 Package(s)
Upgrade 1 Package(s)

Total size: 5.3 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : unixODBC-libs 1/16
Installing : unixODBC 2/16
Installing : sysstat 3/16
Updating : irqbalance 4/16
Installing : unixODBC-devel 5/16
Installing : libaio-devel 6/16
Installing : libaio-devel 7/16
Installing : glibc-devel 8/16
Installing : oraclelinux-release 9/16
Installing : unixODBC-libs 10/16
Installing : libXp 11/16
Installing : unixODBC-devel 12/16
Installing : elfutils-libelf-devel 13/16
Installing : elfutils-libelf-devel-static 14/16
Installing : oracle-validated 15/16
Cleanup : irqbalance 16/16

Installed:
oracle-validated.x86_64 0:1.1.0-17.el5

Dependency Installed:
elfutils-libelf-devel.x86_64 0:0.137-3.el5 elfutils-libelf-devel-static.x86_64 0:0.137-3.el5 glibc-devel.i386 0:2.5-107.el5_9.4 libXp.i386 0:1.0.0-8.1.el5
libaio-devel.i386 0:0.3.106-5 libaio-devel.x86_64 0:0.3.106-5 oraclelinux-release.x86_64 0:5-9.0.2 sysstat.x86_64 0:7.0.2-12.0.1.el5
unixODBC.x86_64 0:2.2.11-10.el5 unixODBC-devel.i386 0:2.2.11-10.el5 unixODBC-devel.x86_64 0:2.2.11-10.el5 unixODBC-libs.i386 0:2.2.11-10.el5
unixODBC-libs.x86_64 0:2.2.11-10.el5

Dependency Updated:
irqbalance.x86_64 2:0.55-17.el5

Complete!

Apague o usuário criado:

[root@oracleol5 ~]# userdel -r rpmblduser

Pronto, sua máquina está pronta para a instalação do Bando de Dados Oracle. Verifique se o usuário do oracle e os grupos foram criados.

Não esqueça de salvar esse novo RPM, facilitará da próxima vez que precisar aplicar os pré-requisitos da próxima instalação =]

 

Gostou? Não deixe de comentar ou deixar um 👍!

Deixe um comentário

Seu e-mail não será publicado.