Wednesday 30 March 2011

Oracle Validated Configuration RPM for OEL5

root@OEL5# ls -l /etc/yum.repos.d
total 0
yum repolist all reports all available repositories and their statuses.
[root@OEL5 yum.repos.d]# yum repolist all
Loaded plugins: security
repo id repo name status
el5_addons Enterprise Linux 5 – i386 – addons disabled
el5_ga_base Enterprise Linux 5 GA – i386 – base disabled
el5_oracle_addons Enterprise Linux 5 – i386 – oracle_addon disabled
el5_u1_base Enterprise Linux 5 U1 – i386 – base disabled
el5_u2_base Enterprise Linux 5 U2 – i386 – base disabled
el5_u3_base Enterprise Linux 5 U3 – i386 – base disabled
el5_u4_base Enterprise Linux 5 U4 – i386 – base disabled
repolist: 0
[root@OEL5 yum.repos.d]#
root@OEL5# cd /etc/yum.repos.d
root@OEL5# wget http://public-yum.oracle.com/public-yum-el5.repo
a file named “public-yum-el5.repo” will be saved to /etc/yum.repos.d
Open public-yum-el5.repo in a text editor(vi or gedit)
Locate the section in the file for the repository you plan to update from, e.g. [el5_ga_base]
Change enabled=0 to enabled=1
I changed enabled=0 to enabled=1 in el5_ga_base and the status changed from disabled to enabled.
You can even change enabled=1 for all repositories but the usual claim is that with many repositories
enabled there might be conflicts between repositories while searching for rpms.
Till date I have not faced any problems with all my repositories enabled.
[root@OEL5 yum.repos.d]# yum repolist all
Loaded plugins: security
repo id repo name status
el5_addons Enterprise Linux 5 – i386 – addons disabled
el5_ga_base Enterprise Linux 5 GA – i386 – base enabled: 3,204
el5_oracle_addons Enterprise Linux 5 – i386 – oracle_addon disabled
el5_u1_base Enterprise Linux 5 U1 – i386 – base disabled
el5_u2_base Enterprise Linux 5 U2 – i386 – base disabled
el5_u3_base Enterprise Linux 5 U3 – i386 – base disabled
el5_u4_base Enterprise Linux 5 U4 – i386 – base disabled
repolist: 3,204
[root@OEL5 yum.repos.d]#
[root@dhcppc4 yum.repos.d]# yum install oracle-validated
or 
[root@localhost Server]# pwd
/media/Enterprise Linux dvd 20090908/Server
[root@localhost Server]# yum install ./oracle-validated-1.0.0-18.el5.i

No comments: