Friday, July 12, 2013

Public Yum Configuration | Oracle Linux

Public Yum Configuration.

Operating System: Oracle Linux 5.8

Install the yum repos as follows:

Step 1. Login as a root user to the linux box and go to the location /etc/yum.repos.d

[root@host1 ~]# cd /etc/yum.repos.d/
[root@host1 yum.repos.d]# 

Step 2. Get the public yum file using the below mentioned command

[root@host1 yum.repos.d]#  wget http://public-yum.oracle.com/public-yum-el5.repo

Step 3. Open the file using a text editor (here I am using vi editor).

[root@host1 yum.repos.d]# vi /etc/yum.repos.d/public-yum-el5.repo

Step 4. Search for the below mentioned parameters 

ol5_u8_base and el5_addons and set the value for "enabled=1"





Step 5. This step is optional.

Type the following commands in a shell to check that your yum repository is configured correctly:

[root@host1 ~]#sudo yum repolist

The output should look like this:

el5_addons              |  951 B     00:00    
ol5_u8_base             |  1.1 kB    00:00    
repo id       repo name                             status
base          Red Hat Linux - Base                  enabled:3,024
el5_addons    Enterprise Linux 5 - x86_64 - addons  enabled:   93
ol5_u8_base   Oracle Linux 5 - U8 - x86_64 - base   enabled:4,551

Make sure that both the el5_addons and ol5_u8_base repos are listed. The list of repos can be different depending on the Linux version and current user's configuration of yum.

1 comment: