Thursday, January 17, 2013

yum yum - upgrade OL 5.8 to 5.9

I found Oracle Linux 5.9 post. After I heard Red Hat Enterprise Linux 5.9 GA Announcement last week. However, I pointed to Oracle Linux. I had to upgrade my test system.
You can read Oracle Linux 5.9 Release Notes and you can upgrade by using yum command-line.
[root@linux ~]# rpm -qf /etc/oracle-release
oraclelinux-release-5-8.0.2

[root@linux ~]# uname -r
2.6.39-100.5.1.el5uek
[root@linux ~]#
[root@linux ~]# cd /etc/yum.repos.d

[root@linux yum.repos.d]# wget http://public-yum.oracle.com/public-yum-el5.repo
--2013-01-17 10:38:40--  http://public-yum.oracle.com/public-yum-el5.repo
Resolving public-yum.oracle.com... 141.146.44.34
Connecting to public-yum.oracle.com|141.146.44.34|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4220 (4.1K) [text/plain]
Saving to: `public-yum-el5.repo'

100%[======================================================================================================>] 4,220       15.7K/s   in 0.3s

2013-01-17 10:38:41 (15.7 KB/s) - `public-yum-el5.repo' saved [4220/4220]

[root@linux ~]# vi public-yum-el5.repo
[root@linux ~]# yum upgrade
[root@linux ~]# yum upgrade
[root@linux ~]# reboot

[root@linux ~]# rpm -qf /etc/oracle-release
oraclelinux-release-5-9.0.2
[root@linux ~]# uname -r
2.6.39-300.26.1.el5uek

However, if you ran "yum upgrade" and error "[Errno 4] IOError: <urlopen error>". You might try again or fix by regenerate the metadata cache (link) and run "yum upgrade" again.

Reference:
http://public-yum.oracle.com/

No comments: