Apps To Fusion

.......Our Journey from Apps To Fusion

 
  • Increase font size
  • Default font size
  • Decrease font size



Install missing rpm packages from Oracle's Yum server for Oracle Enterprise Linux 5

E-mail
User Rating: / 2
PoorBest 
World wide web is full of hits/errors whereby techies & DBA's try to install Oracle Database or Oracle R12 or other Oracle Products on Oracle Enterprise Linux, and they bump into missing rpms. In this article, you will see step by step instructions of how you can leverage the public rpm repository exposed by Oracle. 
There is no need of login/password to install these publicly available rpm's from Oracle's website.

Missing RPM's are the single most important hurdle that dba's & developers  must cross when installing desired Oracle software's on linux boxes. The best way for any Oracle developer to get started with Linux based installations is by installing Oracle 11g Database on Oracle Enterprise Linux. 

Steps are
a. Register, download & install VMWare server. Youtube has many videos for this. Simply search for VMWare server install in http://youtube.com
b. Register and download Oracle Enterprise Linux from
http://edelivery.oracle.com/linux
c. Download Oracle Database 11g for Linux from 
d. Unzip the files in any temp/staging or installation directory
By following steps a) to e), you can get first hand experience of the process of installing Oracle Software's on linux. 
However, the Step (e) on Oracle's webpage does not give a clue about how you will install the RPMs

This article gives step by step instructions to install missing RPMs, and this knowledge can be carried forward into learning installation of other complex Oracle Products.
Firstly let us do some Q&A

What is a rpm ?
Think of rpm to be equivalent to Windows executable that installs some software on your Windows based computers. Likewise rpm's are equivalent to windows installation executable EXE files.


I have downloaded Oracle Enterprise Linux which is a product from Oracle. Why should I then install extra rpm's for installing other Oracle products?
Let us take an example. You may have installed the basic initial version Oracle Enterprise Linux 5 perhaps an year ago. But the latest Oracle 11g R2 database released a month ago might be dependent upon some code/libraries in the Linux operating system that were not a part of base version of OEL5. As of today, Oracle have version 5th of OEL5 which perhaps comes bundled with all necessary rpm's needed for current Oracle toolsets. 
However your version of O/S install may not have those necessary RPMs 
Additionally you may in future install new Oracle software on your existing Oracle Enterprise Linux. The new software's might depend upon some new libraries that are delivered as rpm. These new libraries may not have been shipped with your version of O/S. In such cases, you must download & install the latest version of those libraries onto your Linux Operating system. It is in such cases you will find the steps in this article helpful, whereby you can install the latest rpm's straight from Oracle's website.


Installing rpm's is a nightmare, because I need to work through the list of dependent rpm's
Well not really, the beauty of Oracle's Public yum repository is that, "yum install" command can scan and automatically install all the dependent rpm's automatically for you from Oracle's public rpm repository


Is yum the only command to install packages in Linux?
Not really, however the most common commands are rpm and yum


Can I not extract the desired rpm's from the Linux Installation CD itself
Of course you can, provided the rpm's are contained within that CD. I prefer to leverage Oracle's RPM repository and prefer yum to install all dependent packages by itself


What is the URL of public Oracle's Public yum repository?



What are the steps for connecting my linux machine to Oracle's yum server
You need to download the yum .repo file from the server, as per the steps below. After this, you need to enable a flag in the .repo file as per your operating system version. Having done these two steps, when you run yum install <pkgname> command on your linux box, the Oracle's yum server will be scanned, the dependent & the relevant rpm's will be download and installed for you.
Steps are highlighted in blue
cd /etc/yum.repos.d
To download files here
 
wget http://public-yum.oracle.com/public-yum-el5.repo

A file named public-yum-el5.repo will be created in your directory 
Edit this file and enter enabled=1 against the operating systems which is relevant to you
vi public-yum-el5.repo

Next run the yum command
yum install package-name
 




For detailed visual steps, please see below images and the video
 
Download the yum repository reference to your linux box
 
 Specify your operating system, in my case it is Oracle Enterprise Linux 5 update5
 

 
 Check if the rpm exists already. If rpm is not already installed then rpm -qa will not list your rpm, hence grep will not return anything
Next install the rpm, in this case glibc-devel. 
 
 
 
 
 After installation, command "yum -qa" will list your rpm as it is now installed
  
 
 
In case rpm already exists, then you get a message "Nothing to do" 
 
The Link to video is 
 
Note- Thanks to Gary Derrick [EBusiness Suite Consultant]  for pointing me to the Oracle's Yum Server
Comments (4)add
Saved me.
written by Brent Hames , January 07, 2011
Thanks for the article. It saved me a ton of time getting the packages.

-brent
report abuse
vote down
vote up
Votes: +0
how do I tell which update I'm using?
written by Mike Schement , March 30, 2011
In your example, you enabled update 5. How do I tell what update of the kernel I have?

here's my output from uname -a

Linux localhost.localdomain 2.6.18-164.el5PAE #1 SMP Thu Sep 3 02:28:20 EDT 2009 i686 i686 i386 GNU/Linux

Is that update #1?

Thanks
report abuse
vote down
vote up
Votes: +0
found update from cat
written by Mike Schement , March 30, 2011
never mind. i realized the update can be found from
cat /etc/redhat-release

Red Hat Enterprise Linux Server release 5.4 (Tikanga)

I guess mine is update 4
report abuse
vote down
vote up
Votes: +1
...
written by replica , December 15, 2011
replica Air King watches is generally more costly than relex Explorer replicaif you evaluate similar types, but one can typically justify this when you take into account that Rolex will retain its value above time.

report abuse
vote down
vote up
Votes: +0
Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
smile
wink
laugh
grin
angry
sad
shocked
cool
tongue
kiss
cry
smaller | bigger

security image
Write the displayed characters


busy
Last Updated ( Thursday, 20 May 2010 09:49 )  

Search apps2fusion