Sean’s Obsessions

  • Archives

06 Mar

Upgrading legacy Fedora boxen for the DST time change

There’s lots of documents out there on how to download the latest time zone data and apply it manually. In the interests of proper management though, I like using RPM to do pretty much everything. The problem is that Fedora Legacy has disbanded, so I can’t get patches for my FC1 and FC4 systems. The solution is to rebuild the FC6 packages and apply them to the legacy systems. (It’s entirely possible that they may apply directly since it’s noarch, but my local mirror didn’t seem to have the package)

[root@sergeant root]# zdump -v /etc/localtime | grep 2007
/etc/localtime Sun Apr 1 07:59:59 2007 UTC = Sun Apr 1 01:59:59 2007 CST isdst=0 gmtoff=-21600
/etc/localtime Sun Apr 1 08:00:00 2007 UTC = Sun Apr 1 03:00:00 2007 CDT isdst=1 gmtoff=-18000
/etc/localtime Sun Oct 28 07:59:59 2007 UTC = Sun Oct 28 02:59:59 2007 CDT isdst=1 gmtoff=-18000
/etc/localtime Sun Oct 28 08:00:00 2007 UTC = Sun Oct 28 02:00:00 2007 CST isdst=0 gmtoff=-21600

[root@sergeant root]# wget http://www.muug.mb.ca/pub/fedora/linux/core/updates/6/SRPMS/tzdata-2007c-1.fc6.src.rpm
–08:31:20– http://www.muug.mb.ca/pub/fedora/linux/core/updates/6/SRPMS/tzdata-2007c-1.fc6.src.rpm
=> `tzdata-2007c-1.fc6.src.rpm’
Resolving www.muug.mb.ca… done.
Connecting to www.muug.mb.ca[130.179.31.46]:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 366,378 [application/x-rpm]

100%[====================================>] 366,378 494.87K/s ETA 00:00

08:31:21 (494.87 KB/s) - `tzdata-2007c-1.fc6.src.rpm’ saved [366378/366378]

[root@sergeant root]# rpmbuild –rebuild tzdata-2007c-1.fc6.src.rpm
Installing tzdata-2007c-1.fc6.src.rpm

Wrote: /usr/src/redhat/RPMS/noarch/tzdata-2007c-1.noarch.rpm

[root@sergeant root]# rpm -Uvh /usr/src/redhat/RPMS/noarch/tzdata-2007c-1.noarch.rpm

Preparing… ########################################### [100%]
1:tzdata ########################################### [100%]

For some reason /etc/localtime was a file instead of a symlink
[root@sergeant root]# rm /etc/localtime
rm: remove regular file `/etc/localtime’? y
[root@sergeant root]# ln -s /usr/share/zoneinfo/CST6CDT /etc/localtime
[root@sergeant root]# !zdump
zdump -v /etc/localtime | grep 2007
/etc/localtime Sun Mar 11 07:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 CST isdst=0 gmtoff=-21600
/etc/localtime Sun Mar 11 08:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 CDT isdst=1 gmtoff=-18000
/etc/localtime Sun Nov 4 06:59:59 2007 UTC = Sun Nov 4 01:59:59 2007 CDT isdst=1 gmtoff=-18000
/etc/localtime Sun Nov 4 07:00:00 2007 UTC = Sun Nov 4 01:00:00 2007 CST isdst=0 gmtoff=-21600

2 Responses to “Upgrading legacy Fedora boxen for the DST time change”

  1. 1
    Scott Says:

    I was able to update FC1 with FC4 tzdata
    http://rpmfind.net//linux/RPM/fedora/updates/4/i386/tzdata-2006g-1.fc4.noarch.html
    then run timeconfig sync update with /etc/localtime
    to check before and after
    zdump -v EST5EDT | grep 2007
    zdump -v /etc/localtime | grep 2007

  2. 2
    dwnwrd Says:

    On an FC5 box that has seen RH9 upgraded to FC3 to FC5 /etc/localtime was a file. I removed it and symlinked it to /usr/share/zoneinfo/America/Los_Angeles and all was better.

Leave a Reply

Your blog, no spam: the thorough-paced WP-Hashcash?

© 2008 Sean’s Obsessions | Entries (RSS) and Comments (RSS)

Powered by Wordpress, design by Web4Sudoku, based on Pinkline byGPS Gazette