How to upgrade Linux RedHat 5.x or 6.x using kickstart over HTTP or CD-ROM (or .iso)


The following kickstart upgrade procedure apply for RedHat version 5.x or 6.x.
If you plan to upgrade from a version 5.x to 6.x, it will not work (you must reinstall your system from scratch!).
If you plan to upgrade from a release 5.x to a latest one, it will work (example from 5.5 to 5.6, and so on …).
This post will not cover basic windows or Linux command that you must know before following this procedure.

If you plan to upgrade your linux system, please refer first to my previous post to know how kickstart work
and then follow those instructions:

1) modify the file ks.cfg as follow

=> If you plan to use a static IP (modify the text between <> with your data):

upgrade
text
url –url http://<ip_address>/pub/
lang en_US.UTF-8
keyboard be-latin1
network –device eth0 –bootproto static –ip=<ip_address> –netmask=<netmask> –gateway=<gateway> –nameserver=<nameserver1,nameserver2> –hostname=<hostanme> –noipv6
bootloader –upgrade –location mbr
shutdown
clearpart –none

=> If you plan to use a DHCP IP (modify the text between <> with your data):

upgrade
text
url –url http://<ip_address>/pub/
lang en_US.UTF-8
keyboard be-latin1
network –device eth0 –bootproto dhcp –noipv6
bootloader –upgrade –location mbr
shutdown
clearpart –none

2) at boot menu (spalshscreen RedHat) type F2 if you install RedHat 5.x (or esc if you install RedHat 6.x)
3) at the boot prompt, type the following command:

=> If you plan to install over HTTP with DHCP address for the client, type the following command (modify the text between <> with your data)

linux ks=http://<ip_address>/pub/kickstart/ks.cfg

=> If you plan to install over HTTP with Static address for the client, type the following command (modify the text between <> with your data)

linux ks=http://<ip_address>/pub/kickstart/ks.cfg append ip=<ip_address> netmask=<netmask>

4) Once your upgradeis complete, logon to your linux system as root and check the file upgrade.log in the root directory. It contains the list of packages that have been upgraded during the installation:

[root@linux_kick01 ~]# ls -lrt
total 60
-rw-r–r– 1 root root  3329 Sep 27 10:15 install.log.syslog
-rw-r–r– 1 root root 19899 Sep 27 10:15 install.log
-rw——- 1 root root  1059 Sep 27 10:15 anaconda-ks.cfg
-rw-r–r– 1 root root  4613 Sep 27 10:22 upgrade.log
-rw-r–r– 1 root root   897 Sep 27 10:23 upgrade.log.syslog
[root@linux_kick01 ~]# more upgrade.log

Upgrading tzdata-2011g-1.el5.i386
warning: tzdata-2011g-1.el5: Header V3 DSA signature: NOKEY, key ID 37017186
Upgrading glibc-common-2.5-65.i386
warning: glibc-common-2.5-65: Header V3 DSA signature: NOKEY, key ID 897da07a
Upgrading nash-5.1.19.6-71.el5.i386
Upgrading yum-security-1.1.16-15.el5.noarch
Upgrading hwdata-0.213.23-1.el5.noarch
Upgrading emacs-leim-21.4-24.el5.i386
Upgrading libgcc-4.1.2-51.el5.i386
Upgrading glibc-2.5-65.i686
Upgrading bash-3.2-32.el5.i386
Upgrading coreutils-5.97-34.el5.i386

Upgrading rhn-client-tools-0.4.20-53.el5.noarch
Upgrading rhn-setup-0.4.20-53.el5.noarch
Upgrading yum-rhn-plugin-0.5.4-20.el5.noarch
Upgrading rhn-check-0.4.20-53.el5.noarch
Upgrading rhnsd-4.7.0-10.el5.i386
Upgrading rhn-setup-gnome-0.4.20-53.el5.noarch

5) You are done!

Comments are closed.