I have an RHEL4 server with no connectivity to Internet. (Of course, I can scp files into that server from my network). RHEL4 is out of support and RedHat no longer releases tzdata update RPMs for it. At least, I couldn't find an update RPM from RedHat.

My server runs Java 6u20. Is there a way to update the tzdata files using, let's say the timezone files provided at http://mm.icann.org/pipermail/tz-announce/2018-January/000048.html? Or any other mechanisms to update tzdata? Basically I need to get the latest DST info into that server.

  • 1
    You need to buy the appropriate support package, and even then they might not have it. You were supposed to have migrated away from RHEL4 several years ago. That said, backporting a noarch RPM is usually pretty easy. And I would not be terribly surprised if the RHEL6 or RHEL7 RPM installed properly without any issues. – Michael Hampton Oct 24 '18 at 3:24
  • We have the support package, but RedHat doesn't have it since RHEL4 is end of support since 2017. Migrated most of our customers, but a last few remain :-( I will try taking the noarch RPM for RHEL6 and try installing that. Thanks! – rkrishnan Oct 24 '18 at 7:45
  • 1
    And remember that Java uses its own tzdata, not the system tzdata. If you used the system Java packages, it will be in tzdata-java. Otherwise, you'll probably have to chat with Oracle. Your Java version is also way past end of life. – Michael Hampton Oct 24 '18 at 13:53
  • That's another issue I have to deal with. The tzdata update is primarily for Java applications. By the way, the RHEL6/7 noarch RPM for tzdata doesn't install on RHEL4. – rkrishnan Oct 24 '18 at 16:06
  • 1
    Try the RHEL 5 RPMs. The RPM format changed in RHEL 6 and isn't backward compatible. – Michael Hampton Oct 24 '18 at 16:14

Got to work this by installing RHEL5 tzdata RPMs on the RHEL4 box. The tzdata-java RPM contents had to be explicitly copied after installation to $JAVA_HOME/jre/lib/zi for Java to pick it up. (The RPM installs to usr/share/zoneinfo). Check the comments on the question as well, for some more details.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.