LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-23-2007, 10:39 AM   #1
bryansail
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Rep: Reputation: 0
Redhat 2007 DST Changes


Thanks very much for your post on Linux Questions regarding RH 8.0 DST Changes for 2007. I did the commands as you stated, namely:

mkdir tz
cd tz
wget 'ftp://elsie.nci.nih.gov/pub/tz*.tar.gz'
gzip -dc tzcode*.tar.gz | tar -xf -
gzip -dc tzdata*.tar.gz | tar -xf -


But now I'm not exactly sure how to install the packages. I read the README but it wasn't clear to me. What commands would I use to perform the 2007 fix for a New York Time Zone? Please help!

Thanks in Advance,
 
Old 02-25-2007, 06:01 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
But now I'm not exactly sure how to install the packages. I read the README but it wasn't clear to me.
Code:
]$  nl README | less
    29  Here is a recipe for acquiring, building, installing, and testing the
    30  tz distribution on a GNU/Linux or similar host.
    31          mkdir tz
    32          cd tz
    33          wget 'ftp://elsie.nci.nih.gov/pub/tz*.tar.gz'
    34          gzip -dc tzcode*.tar.gz | tar -xf -
    35          gzip -dc tzdata*.tar.gz | tar -xf -
    36  Be sure to read the comments in "Makefile" and make any changes needed
    37  to make things right for your system, especially if you are using some
    38  platform other than GNU/Linux.  Then run the following commands,
    39  substituting your desired installation directory for "$HOME/tzdir":
    40          make TOPDIR=$HOME/tzdir install
Code:
]$ cd /tmp && { mkdir tz && cd tz || exit 1; }
wget -q 'ftp://elsie.nci.nih.gov/pub/tz*.tar.gz' || exit 
]$ gzip -dc tzcode*.tar.gz | tar -xf -
]$ gzip -dc tzdata*.tar.gz | tar -xf -
]$ which nawk >/dev/null 2>&1|| { sed -i 's|nawk|gawk|g' Makefile || exit 1; }
]$ LOCALTIMEVAR0=`grep ^ZONE= /etc/sysconfig/clock 2>/dev/null| awk -F'=' '{print $2}'|tr -d '"'`
]$ LOCALTIMEVAR1=`make zonenames 2>/dev/null|grep -m1 $LOCALTIMEVAR0|awk '{print $1}'`
]$ [ -n $LOCALTIMEVAR1 ] || exit 1 && { sed -i "s|Factory|$LOCALTIMEVAR1|g" Makefile \
&& make install; echo 'Done!'; }
 
Old 02-28-2007, 12:37 PM   #3
bryansail
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Original Poster
Rep: Reputation: 0
RH 8.0 DST Changes for 2007

Thanks Uspawn!

I did the commands you suggested. The first resulted in the terminal window disappearing -- strange. What can I do to ensure that the 2007 DST Rules are now in effect on this PC?

Thanks again,

-Bryan
 
Old 02-28-2007, 12:55 PM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
To check, this command will tell you if the file has been updated -

Code:
zdump -v /etc/localtime | grep 2007
This is the output if the time change-change has been made

Code:
/etc/localtime Sun Mar 11 06:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 EST isdst=0 gmtoff=-18000 
/etc/localtime Sun Mar 11 07:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 EDT isdst=1 gmtoff=-14400 
/etc/localtime Sun Nov 4 05:59:59 2007 UTC = Sun Nov 4 01:59:59 2007 EDT isdst=1 gmtoff=-14400 
/etc/localtime Sun Nov 4 06:00:00 2007 UTC = Sun Nov 4 01:00:00 2007 EST isdst=0 gmtoff=-18000

Thanks for this information from JimBass
http://www.linuxquestions.org/questi...d.php?t=531713

This definitely works on Debian so it may work for you as well
 
Old 02-28-2007, 02:00 PM   #5
bryansail
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Original Poster
Rep: Reputation: 0
2007 DST Rules Changes

WOW Farslayer! That command works on RH 8.0 OS. It was vital in determining if the the DST changes were actually made!

MANY THANKS!!!

-Bryan
 
Old 03-03-2007, 05:09 AM   #6
rbishops
LQ Newbie
 
Registered: Mar 2007
Posts: 3

Rep: Reputation: 0
Questions regarding RH 7.2

Sorry, this may seem silly. I was able to update the Makefile and compile with the information provided, however I am unsure on how to implement the changes. If I run the new zdump against the new localtime, it looks correct. However, the system is still using the original zdump and localtime even when using the -ltz during the compile. Any suggestions?
 
Old 03-03-2007, 06:15 AM   #7
rbishops
LQ Newbie
 
Registered: Mar 2007
Posts: 3

Rep: Reputation: 0
RH 7.2 Install?

Is this enough to complete the installation?

mv /usr/share/zoneinfo /usr/share/zoneinfo.org
mv /etc/localtime /etc/localtime.org
mv /usr/bin/tzselect /usr/bin/tzselect.org
mv /usr/sbin/zdump /usr/sbin/zdump.org
mv /usr/sbin/zic /usr/sbin/zic.org

ln -s $tzdir/etc/zoneinfo /usr/share/zoneinfo
ln -s $tzdir/etc/zoneinfo/localtime /etc/localtime
ln -s $tzdir/etc/tzselect /usr/bin/tzselect
ln -s $tzdir/etc/zdump /usr/sbin/zdump
ln -s $tzdir/etc/zic /usr/sbin/zic
 
Old 03-03-2007, 11:27 PM   #8
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
What distros are you all running that there wasn't a simple update available ?

I'm just kind of curious since all I did with Debian was the standard update process and all of my Debian machines are ready for the new DST changes..

I would have thought that all the major distros would have updates available, and any child distros of them would get the update through the trickle down effect..
 
Old 03-06-2007, 07:15 AM   #9
rbishops
LQ Newbie
 
Registered: Mar 2007
Posts: 3

Rep: Reputation: 0
I've got a few machines running some older distros; RedHat 6.2 on Sparc and RedHat 7.2 for i386. My newer RedHat and SUSE distros were done through the standard update process. After some testing all appear to be working well now.
 
Old 03-08-2007, 06:02 AM   #10
bryansail
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Lightbulb

In the end, some great guys gave me these simple commands to update the 2007 DST Rules on Redhat Linux 8.0:

url=http://bent.latency.net/bent/i386/zoneinfo-2007b.cpio.bz2
cd /
wget -q -O - $url|bzip2 -d|cpio -idum


This was much simpler than the process as given in the 2/23 & 2/25 posts.

Then just run:

zdump -v /etc/localtime | grep 2007

And the output should be:


/etc/localtime Sun Mar 11 06:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 EST isdst=0 gmtoff=-18000
/etc/localtime Sun Mar 11 07:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 EDT isdst=1 gmtoff=-14400
/etc/localtime Sun Nov 4 05:59:59 2007 UTC = Sun Nov 4 01:59:59 2007 EDT isdst=1 gmtoff=-14400
/etc/localtime Sun Nov 4 06:00:00 2007 UTC = Sun Nov 4 01:00:00 2007 EST isdst=0 gmtoff=-18000


Thanks to all!!
 
Old 03-11-2007, 10:45 AM   #11
sneader
LQ Newbie
 
Registered: Mar 2007
Posts: 1

Rep: Reputation: 0
Didn't work with Shrike

Quote:
/bent/i386/zoneinfo-2007b.cpio.bz2
I see the file name has changed to zoneinfo-2007c.cpio.bz2

Still when I run the zdump command, I'm still showing the old dates. This is with Shrike. Any other suggestions?

- Scott
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RedHat Release 9 and Daylight Savings Time (DST) hbloom Linux - General 10 10-07-2009 12:06 AM
DST patch on RH 7.0 cavladim Red Hat 10 03-31-2007 09:29 AM
DST Change and Slack 9.1 wczimmerman Slackware 4 02-22-2007 10:20 AM
DST patch on RH 7.2 cavladim Linux - Server 1 01-15-2007 10:53 AM
How to disable DST in RH 9.0?? registering Red Hat 0 04-12-2004 08:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration