How to configure YUM for Oracle Enterprise Linux (OEL) to install missing RPMs

I installed new Linux Server for our Oracle Access Manager (OAM) 11gR2 Admin Training (training starts on 3rd May and fee is 699 USD). This post covers steps to configure YUM so that you can install missing RPM (RPMs required for Oracle Database and Fusion Middleware).

1. Identify your Oracle Enterprise Linux version from enterprise-release file

cat /etc/enterprise-release

You should see entry like

Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)

Output above represents that version of Linux is 5.5

2. Next task is to download yum repository configuration file from Oracle Public Yum Server.

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

3. Enable yum for 5.5 (as our linux version is 5.5) in file /etc/yum.repos.d/public-yum-el5.repo by changing enabled from 0 to 1. Enable same as per your OEL version

[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=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

4. Install packages in Oracle Linux as shown below

yum list

yum install [package_name]
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s