Oracle Linux5.5: Setup yum Repository

 

Setup yum Repository

* Make sure virtual box network is setup to NAT or Bridged Adapter so you have access to the internet.

Oracle Linux 5

* Obtain public-yum-el5.repo file:

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

* Find Oracle Linux release number.
– The following output means it’s Red Hat Enterprise Linux Server (el) release 5 update 5
– and we need to enable el5_u5_base in public-yum-el5.repo file

cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.5 (Tikanga)

* Edit public-yum-el5.repo to enable appropriate repository

[el5_u5_base]
name=Enterprise Linux $releasever U5 - $basearch - base
baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/5/base/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
gpgcheck=1
enabled=1

* Use yum

yum list
yum install

Issues

Repository el5_xx_base is listed more than once in the configuration

* Error message:

yum list
Loaded plugins: security
Repository el5_ga_base is listed more than once in the configuration
Repository el5_u1_base is listed more than once in the configuration
Repository el5_u2_base is listed more than once in the configuration
Repository el5_u3_base is listed more than once in the configuration
Repository el5_u4_base is listed more than once in the configuration
Repository el5_addons is listed more than once in the configuration

* Cause: multiple .repo files are present in /etc/yum.repos.d directory
* Fix: move all .repo files other than public-yum-el5.repo to a backup directory, for example:

mkdir bak
move ULN* bak

* Reference: http://www.geoffblog.com/2005/12/yum-repository-base-is-listed-more.html

References

* Yum Repository Setup by Oracle Unbreakable Linux

This entry was posted in Linux, virtualbox. Bookmark the permalink.

2 Responses to Oracle Linux5.5: Setup yum Repository

Leave a Reply

Your email address will not be published. Required fields are marked *


*

This site uses Akismet to reduce spam. Learn how your comment data is processed.