Setup Oracle Enterprise Linux for Public Yum Server

In order to get the lastest packages for Oracle Enterprise Linux, I need to set my yum to point to your oracle public yum server.

1. check your Oracle Enterprise Linux version

[henry@localhost ~]$ rpm -qf /etc/enterprise-release 
enterprise-release-5-0.0.22
[henry@localhost ~]$ cat /proc/version
Linux version 2.6.18-194.17.1.0.1.el5 (mockbuild@ca-build9.us.oracle.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Wed Sep 29 15:40:03 EDT 2010

2. su root and wget

[root@localhost /]# cd /etc/yum.repos.d
[root@localhost yum.repos.d]# wget http://public-yum.oracle.com/public-yum-el5.repo
--2013-11-05 13:46:17--  http://public-yum.oracle.com/public-yum-el5.repo
Resolving public-yum.oracle.com... 184.29.106.66, 184.29.106.34
Connecting to public-yum.oracle.com|184.29.106.66|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4307 (4.2K) [text/plain]
Saving to: `public-yum-el5.repo'

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

2013-11-05 13:46:17 (323 MB/s) - `public-yum-el5.repo' saved [4307/4307]

3. Make sure enable the release based on your version (in my case el5_latest)

[root@localhost yum.repos.d]# vi public-yum-el5.repo 
[el5_latest]
name=Oracle Linux $releasever Latest ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

4. Test: get any package if you want

[root@localhost yum.repos.d]# yum install freeglut-devel

About henry416
I am a computer technology explorer and an university student based on Toronto. If you have any question, please feel free to discuss and comment here

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s