- Download and copy the appropriate yum configuration file in place, by running the following commands as root:
Oracle Linux 7
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ol7.repoOracle Linux 6
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ol6.repoOracle Linux 5
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-el5.repoOracle Linux 4, Update 6 or Newer
# cd /etc/yum.repos.d
# mv Oracle-Base.repo Oracle-Base.repo.disabled
# wget http://public-yum.oracle.com/public-yum-el4.repoOracle OpenStack for Oracle Linux 2.0
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ol7.repo
# yum install yum-plugin-prioritiesNote: Make sure to enable ol7_optional_latest repository before installing yum-plugin-priorities on your systemOracle OpenStack for Oracle Linux 1.0
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-openstack-ol6.repoOracle VM 2
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ovm2.repo - By default, the
latest
repository is enabled. If you want to change the default, you can enable an alternative repository by editing the yum configuration file. - Open the yum configuration file in a text editor
- Locate the section in the file for the repository want to enable, e.g.
[el4_u6_base]
- Change
enabled=0
toenabled=1
[root@r122prod ~]# cd /etc/yum.repos.d/
[root@r122prod yum.repos.d]# wget http://public-yum.oracle.com/public-yum-el5.repo
--2015-11-29 23:49:20-- http://public-yum.oracle.com/public-yum-el5.repo
Resolving public-yum.oracle.com... 123.176.32.146, 123.176.32.178
Connecting to public-yum.oracle.com|123.176.32.146|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5274 (5.2K) [text/plain]
Saving to: `public-yum-el5.repo'
100%[===========================================================================================================================>] 5,274 --.-K/s in 0s
2015-11-29 23:49:20 (195 MB/s) - `public-yum-el5.repo' saved [5274/5274]
Edit the public-yum-ol6.repo file to enable the ol5_addons channel.
[root@r122prod yum.repos.d]# yum install oracle-ebs-server-R12-preinstall -y
Loaded plugins: rhnplugin, security
This system is not registered with ULN.
ULN support will be disabled.
el5_addons | 1.2 kB 00:00
el5_addons/primary | 108 kB 00:01
el5_addons 418/418
el5_latest | 1.4 kB 00:00
el5_oracle_addons | 951 B 00:00
el5_oracle_addons/primary | 1.7 kB 00:00
el5_oracle_addons 7/7
ol5_UEK_latest | 1.2 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package oracle-ebs-server-R12-preinstall.x86_64 0:1.0.0-6.el5 set to be updated
el5_addons/filelists | 686 kB 00:05
el5_latest/filelists | 41 MB 06:16
[root@r122prod yum.repos.d]# wget http://public-yum.oracle.com/public-yum-el5.repo
--2015-11-29 23:49:20-- http://public-yum.oracle.com/public-yum-el5.repo
Resolving public-yum.oracle.com... 123.176.32.146, 123.176.32.178
Connecting to public-yum.oracle.com|123.176.32.146|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5274 (5.2K) [text/plain]
Saving to: `public-yum-el5.repo'
100%[===========================================================================================================================>] 5,274 --.-K/s in 0s
2015-11-29 23:49:20 (195 MB/s) - `public-yum-el5.repo' saved [5274/5274]
Find the ol6_addons section and change enabled=0 to enabled=1.
[ol6_addons]
name=Oracle Linux $releasever Add ons ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/addons/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol5
gpgcheck=1
enabled=1
name=Oracle Linux $releasever Add ons ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/addons/$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol5
gpgcheck=1
enabled=1
Save the file.
[root@r122prod yum.repos.d]# yum install oracle-ebs-server-R12-preinstall -y
Loaded plugins: rhnplugin, security
This system is not registered with ULN.
ULN support will be disabled.
el5_addons | 1.2 kB 00:00
el5_addons/primary | 108 kB 00:01
el5_addons 418/418
el5_latest | 1.4 kB 00:00
el5_oracle_addons | 951 B 00:00
el5_oracle_addons/primary | 1.7 kB 00:00
el5_oracle_addons 7/7
ol5_UEK_latest | 1.2 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package oracle-ebs-server-R12-preinstall.x86_64 0:1.0.0-6.el5 set to be updated
el5_addons/filelists | 686 kB 00:05
el5_latest/filelists | 41 MB 06:16