Quote:
Originally Posted by Lenard
Why did you even bother, did your RHEL subscription run out???
|
Lenard : Yes..I do not have any surbscription.
Here is the simplest process to update any version (older or newer)
Using ZIC to compile / extracting Zone files: (Elegant / Simple process) – works well for any older Linux 7.1 /7.2 versions etc.
Download the most recent version of the time zone text files from the public domain time zone database < ftp://elsie.nci.nih.gov/pub/>, and compile the files yourself with zic.
Download the file named tzdata2007c.tar.gz
This is just an example of just making the America/Los_Angeles zone DST compiled and replace in your presently running linux system, without a break in service. Obviously you could do this for any timezone or all of them.
Download above tar file / unpack it / get your hands on the directory called
“tzdata2007c”
Logon as root
mkdir /root/DST2007 [ this directory is just a working location for my old timezone files backup. You can name anything and location can be anything ]
CD
CD DST2007
COPY / backup present timezone data files: cp –r /usr/share/zoneinfo (and later change the name as oldtimezonebackupfiles)
Unpack the tar file mentioned above and get the tzdata2007c directory. Keep one copy in your work location /root/DST2007 as backup and copy one to /tmp directory.
cd /tmp/tzdata2007c
zic –d /tmp/zoneinfo northamerica
this will compile the time zone files into a directory /tmp/zoneinfo.
Check if dates look correct by doing zdump –v /tmp/zoneinfo/America/Los_Angeles |grep 2007 . [ Note :you see March 11th and Nov 4th ] .
cd /usr/share
rm –rf zoneinfo
mv /tmp/zoneinfo .
cd /etc
ln –sf /usr/shar/zoneinfo/America/Los_Angeles /etc/localtime
check again the correct dates by zdump –v /etc/localtime |grep 2007