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 
[henry@localhost ~]$ cat /proc/version
Linux version 2.6.18- ( (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
--2013-11-05 13:46:17--
Connecting to||: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 
name=Oracle Linux $releasever Latest ($basearch)

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: Logo

You are commenting using your 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