How To Install tzdata-java on CentOS 8

tzdata-java is Timezone data for Java

Introduction

In this tutorial we learn how to install tzdata-java on CentOS 8.

What is tzdata-java

This package contains timezone information for use by Java runtimes.

We can use yum or dnf to install tzdata-java on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install tzdata-java.

Install tzdata-java on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install tzdata-java using dnf by running the following command:

sudo dnf -y install tzdata-java

Install tzdata-java on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install tzdata-java using yum by running the following command:

sudo yum -y install tzdata-java

How To Uninstall tzdata-java on CentOS 8

To uninstall only the tzdata-java package we can use the following command:

sudo dnf remove tzdata-java

tzdata-java Package Contents on CentOS 8

/usr/share/javazi
/usr/share/javazi-1.8
/usr/share/javazi-1.8/tzdb.dat
/usr/share/javazi/Africa
/usr/share/javazi/Africa/Abidjan
/usr/share/javazi/Africa/Accra
/usr/share/javazi/Africa/Algiers
/usr/share/javazi/Africa/Bissau
/usr/share/javazi/Africa/Cairo
/usr/share/javazi/Africa/Casablanca
/usr/share/javazi/Africa/Ceuta
/usr/share/javazi/Africa/El_Aaiun
/usr/share/javazi/Africa/Johannesburg
/usr/share/javazi/Africa/Juba
/usr/share/javazi/Africa/Khartoum
/usr/share/javazi/Africa/Lagos
/usr/share/javazi/Africa/Maputo
/usr/share/javazi/Africa/Monrovia
/usr/share/javazi/Africa/Nairobi
/usr/share/javazi/Africa/Ndjamena
/usr/share/javazi/Africa/Sao_Tome
/usr/share/javazi/Africa/Tripoli
/usr/share/javazi/Africa/Tunis
/usr/share/javazi/Africa/Windhoek
/usr/share/javazi/America
/usr/share/javazi/America/Adak
/usr/share/javazi/America/Anchorage
/usr/share/javazi/America/Araguaina
/usr/share/javazi/America/Argentina
/usr/share/javazi/America/Argentina/Buenos_Aires
/usr/share/javazi/America/Argentina/Catamarca
/usr/share/javazi/America/Argentina/Cordoba
/usr/share/javazi/America/Argentina/Jujuy
/usr/share/javazi/America/Argentina/La_Rioja
/usr/share/javazi/America/Argentina/Mendoza
/usr/share/javazi/America/Argentina/Rio_Gallegos
/usr/share/javazi/America/Argentina/Salta
/usr/share/javazi/America/Argentina/San_Juan
/usr/share/javazi/America/Argentina/San_Luis
/usr/share/javazi/America/Argentina/Tucuman
/usr/share/javazi/America/Argentina/Ushuaia
/usr/share/javazi/America/Asuncion
/usr/share/javazi/America/Atikokan
/usr/share/javazi/America/Bahia
/usr/share/javazi/America/Bahia_Banderas
/usr/share/javazi/America/Barbados
/usr/share/javazi/America/Belem
/usr/share/javazi/America/Belize
/usr/share/javazi/America/Blanc-Sablon
/usr/share/javazi/America/Boa_Vista
/usr/share/javazi/America/Bogota
/usr/share/javazi/America/Boise
/usr/share/javazi/America/Cambridge_Bay
/usr/share/javazi/America/Campo_Grande
/usr/share/javazi/America/Cancun
/usr/share/javazi/America/Caracas
/usr/share/javazi/America/Cayenne
/usr/share/javazi/America/Chicago
/usr/share/javazi/America/Chihuahua
/usr/share/javazi/America/Costa_Rica
/usr/share/javazi/America/Creston
/usr/share/javazi/America/Cuiaba
/usr/share/javazi/America/Curacao
/usr/share/javazi/America/Danmarkshavn
/usr/share/javazi/America/Dawson
/usr/share/javazi/America/Dawson_Creek
/usr/share/javazi/America/Denver
/usr/share/javazi/America/Detroit
/usr/share/javazi/America/Edmonton
/usr/share/javazi/America/Eirunepe
/usr/share/javazi/America/El_Salvador
/usr/share/javazi/America/Fort_Nelson
/usr/share/javazi/America/Fortaleza
/usr/share/javazi/America/Glace_Bay
/usr/share/javazi/America/Goose_Bay
/usr/share/javazi/America/Grand_Turk
/usr/share/javazi/America/Guatemala
/usr/share/javazi/America/Guayaquil
/usr/share/javazi/America/Guyana
/usr/share/javazi/America/Halifax
/usr/share/javazi/America/Havana
/usr/share/javazi/America/Hermosillo
/usr/share/javazi/America/Indiana
/usr/share/javazi/America/Indiana/Indianapolis
/usr/share/javazi/America/Indiana/Knox
/usr/share/javazi/America/Indiana/Marengo
/usr/share/javazi/America/Indiana/Petersburg
/usr/share/javazi/America/Indiana/Tell_City
/usr/share/javazi/America/Indiana/Vevay
/usr/share/javazi/America/Indiana/Vincennes
/usr/share/javazi/America/Indiana/Winamac
/usr/share/javazi/America/Inuvik
/usr/share/javazi/America/Iqaluit
/usr/share/javazi/America/Jamaica
/usr/share/javazi/America/Juneau
/usr/share/javazi/America/Kentucky
/usr/share/javazi/America/Kentucky/Louisville
/usr/share/javazi/America/Kentucky/Monticello
/usr/share/javazi/America/La_Paz
/usr/share/javazi/America/Lima
/usr/share/javazi/America/Los_Angeles
/usr/share/javazi/America/Maceio
/usr/share/javazi/America/Managua
/usr/share/javazi/America/Manaus
/usr/share/javazi/America/Martinique
/usr/share/javazi/America/Matamoros
/usr/share/javazi/America/Mazatlan
/usr/share/javazi/America/Menominee
/usr/share/javazi/America/Merida
/usr/share/javazi/America/Metlakatla
/usr/share/javazi/America/Mexico_City
/usr/share/javazi/America/Miquelon
/usr/share/javazi/America/Moncton
/usr/share/javazi/America/Monterrey
/usr/share/javazi/America/Montevideo
/usr/share/javazi/America/Nassau
/usr/share/javazi/America/New_York
/usr/share/javazi/America/Nipigon
/usr/share/javazi/America/Nome
/usr/share/javazi/America/Noronha
/usr/share/javazi/America/North_Dakota
/usr/share/javazi/America/North_Dakota/Beulah
/usr/share/javazi/America/North_Dakota/Center
/usr/share/javazi/America/North_Dakota/New_Salem
/usr/share/javazi/America/Nuuk
/usr/share/javazi/America/Ojinaga
/usr/share/javazi/America/Panama
/usr/share/javazi/America/Pangnirtung
/usr/share/javazi/America/Paramaribo
/usr/share/javazi/America/Phoenix
/usr/share/javazi/America/Port-au-Prince
/usr/share/javazi/America/Port_of_Spain
/usr/share/javazi/America/Porto_Velho
/usr/share/javazi/America/Puerto_Rico
/usr/share/javazi/America/Punta_Arenas
/usr/share/javazi/America/Rainy_River
/usr/share/javazi/America/Rankin_Inlet
/usr/share/javazi/America/Recife
/usr/share/javazi/America/Regina
/usr/share/javazi/America/Resolute
/usr/share/javazi/America/Rio_Branco
/usr/share/javazi/America/Santarem
/usr/share/javazi/America/Santiago
/usr/share/javazi/America/Santo_Domingo
/usr/share/javazi/America/Sao_Paulo
/usr/share/javazi/America/Scoresbysund
/usr/share/javazi/America/Sitka
/usr/share/javazi/America/St_Johns
/usr/share/javazi/America/Swift_Current
/usr/share/javazi/America/Tegucigalpa
/usr/share/javazi/America/Thule
/usr/share/javazi/America/Thunder_Bay
/usr/share/javazi/America/Tijuana
/usr/share/javazi/America/Toronto
/usr/share/javazi/America/Vancouver
/usr/share/javazi/America/Whitehorse
/usr/share/javazi/America/Winnipeg
/usr/share/javazi/America/Yakutat
/usr/share/javazi/America/Yellowknife
/usr/share/javazi/Antarctica
/usr/share/javazi/Antarctica/Casey
/usr/share/javazi/Antarctica/Davis
/usr/share/javazi/Antarctica/DumontDUrville
/usr/share/javazi/Antarctica/Macquarie
/usr/share/javazi/Antarctica/Mawson
/usr/share/javazi/Antarctica/Palmer
/usr/share/javazi/Antarctica/Rothera
/usr/share/javazi/Antarctica/Syowa
/usr/share/javazi/Antarctica/Troll
/usr/share/javazi/Antarctica/Vostok
/usr/share/javazi/Asia
/usr/share/javazi/Asia/Almaty
/usr/share/javazi/Asia/Amman
/usr/share/javazi/Asia/Anadyr
/usr/share/javazi/Asia/Aqtau
/usr/share/javazi/Asia/Aqtobe
/usr/share/javazi/Asia/Ashgabat
/usr/share/javazi/Asia/Atyrau
/usr/share/javazi/Asia/Baghdad
/usr/share/javazi/Asia/Baku
/usr/share/javazi/Asia/Bangkok
/usr/share/javazi/Asia/Barnaul
/usr/share/javazi/Asia/Beirut
/usr/share/javazi/Asia/Bishkek
/usr/share/javazi/Asia/Brunei
/usr/share/javazi/Asia/Chita
/usr/share/javazi/Asia/Choibalsan
/usr/share/javazi/Asia/Colombo
/usr/share/javazi/Asia/Damascus
/usr/share/javazi/Asia/Dhaka
/usr/share/javazi/Asia/Dili
/usr/share/javazi/Asia/Dubai
/usr/share/javazi/Asia/Dushanbe
/usr/share/javazi/Asia/Famagusta
/usr/share/javazi/Asia/Gaza
/usr/share/javazi/Asia/Hebron
/usr/share/javazi/Asia/Ho_Chi_Minh
/usr/share/javazi/Asia/Hong_Kong
/usr/share/javazi/Asia/Hovd
/usr/share/javazi/Asia/Irkutsk
/usr/share/javazi/Asia/Jakarta
/usr/share/javazi/Asia/Jayapura
/usr/share/javazi/Asia/Jerusalem
/usr/share/javazi/Asia/Kabul
/usr/share/javazi/Asia/Kamchatka
/usr/share/javazi/Asia/Karachi
/usr/share/javazi/Asia/Kathmandu
/usr/share/javazi/Asia/Khandyga
/usr/share/javazi/Asia/Kolkata
/usr/share/javazi/Asia/Krasnoyarsk
/usr/share/javazi/Asia/Kuala_Lumpur
/usr/share/javazi/Asia/Kuching
/usr/share/javazi/Asia/Macau
/usr/share/javazi/Asia/Magadan
/usr/share/javazi/Asia/Makassar
/usr/share/javazi/Asia/Manila
/usr/share/javazi/Asia/Nicosia
/usr/share/javazi/Asia/Novokuznetsk
/usr/share/javazi/Asia/Novosibirsk
/usr/share/javazi/Asia/Omsk
/usr/share/javazi/Asia/Oral
/usr/share/javazi/Asia/Pontianak
/usr/share/javazi/Asia/Pyongyang
/usr/share/javazi/Asia/Qatar
/usr/share/javazi/Asia/Qostanay
/usr/share/javazi/Asia/Qyzylorda
/usr/share/javazi/Asia/Riyadh
/usr/share/javazi/Asia/Sakhalin
/usr/share/javazi/Asia/Samarkand
/usr/share/javazi/Asia/Seoul
/usr/share/javazi/Asia/Shanghai
/usr/share/javazi/Asia/Singapore
/usr/share/javazi/Asia/Srednekolymsk
/usr/share/javazi/Asia/Taipei
/usr/share/javazi/Asia/Tashkent
/usr/share/javazi/Asia/Tbilisi
/usr/share/javazi/Asia/Tehran
/usr/share/javazi/Asia/Thimphu
/usr/share/javazi/Asia/Tokyo
/usr/share/javazi/Asia/Tomsk
/usr/share/javazi/Asia/Ulaanbaatar
/usr/share/javazi/Asia/Urumqi
/usr/share/javazi/Asia/Ust-Nera
/usr/share/javazi/Asia/Vladivostok
/usr/share/javazi/Asia/Yakutsk
/usr/share/javazi/Asia/Yangon
/usr/share/javazi/Asia/Yekaterinburg
/usr/share/javazi/Asia/Yerevan
/usr/share/javazi/Atlantic
/usr/share/javazi/Atlantic/Azores
/usr/share/javazi/Atlantic/Bermuda
/usr/share/javazi/Atlantic/Canary
/usr/share/javazi/Atlantic/Cape_Verde
/usr/share/javazi/Atlantic/Faroe
/usr/share/javazi/Atlantic/Madeira
/usr/share/javazi/Atlantic/Reykjavik
/usr/share/javazi/Atlantic/South_Georgia
/usr/share/javazi/Atlantic/Stanley
/usr/share/javazi/Australia
/usr/share/javazi/Australia/Adelaide
/usr/share/javazi/Australia/Brisbane
/usr/share/javazi/Australia/Broken_Hill
/usr/share/javazi/Australia/Darwin
/usr/share/javazi/Australia/Eucla
/usr/share/javazi/Australia/Hobart
/usr/share/javazi/Australia/Lindeman
/usr/share/javazi/Australia/Lord_Howe
/usr/share/javazi/Australia/Melbourne
/usr/share/javazi/Australia/Perth
/usr/share/javazi/Australia/Sydney
/usr/share/javazi/CET
/usr/share/javazi/CST6CDT
/usr/share/javazi/EET
/usr/share/javazi/EST
/usr/share/javazi/EST5EDT
/usr/share/javazi/Etc
/usr/share/javazi/Etc/GMT
/usr/share/javazi/Etc/GMT+1
/usr/share/javazi/Etc/GMT+10
/usr/share/javazi/Etc/GMT+11
/usr/share/javazi/Etc/GMT+12
/usr/share/javazi/Etc/GMT+2
/usr/share/javazi/Etc/GMT+3
/usr/share/javazi/Etc/GMT+4
/usr/share/javazi/Etc/GMT+5
/usr/share/javazi/Etc/GMT+6
/usr/share/javazi/Etc/GMT+7
/usr/share/javazi/Etc/GMT+8
/usr/share/javazi/Etc/GMT+9
/usr/share/javazi/Etc/GMT-1
/usr/share/javazi/Etc/GMT-10
/usr/share/javazi/Etc/GMT-11
/usr/share/javazi/Etc/GMT-12
/usr/share/javazi/Etc/GMT-13
/usr/share/javazi/Etc/GMT-14
/usr/share/javazi/Etc/GMT-2
/usr/share/javazi/Etc/GMT-3
/usr/share/javazi/Etc/GMT-4
/usr/share/javazi/Etc/GMT-5
/usr/share/javazi/Etc/GMT-6
/usr/share/javazi/Etc/GMT-7
/usr/share/javazi/Etc/GMT-8
/usr/share/javazi/Etc/GMT-9
/usr/share/javazi/Etc/UTC
/usr/share/javazi/Europe
/usr/share/javazi/Europe/Amsterdam
/usr/share/javazi/Europe/Andorra
/usr/share/javazi/Europe/Astrakhan
/usr/share/javazi/Europe/Athens
/usr/share/javazi/Europe/Belgrade
/usr/share/javazi/Europe/Berlin
/usr/share/javazi/Europe/Brussels
/usr/share/javazi/Europe/Bucharest
/usr/share/javazi/Europe/Budapest
/usr/share/javazi/Europe/Chisinau
/usr/share/javazi/Europe/Copenhagen
/usr/share/javazi/Europe/Dublin
/usr/share/javazi/Europe/Gibraltar
/usr/share/javazi/Europe/Helsinki
/usr/share/javazi/Europe/Istanbul
/usr/share/javazi/Europe/Kaliningrad
/usr/share/javazi/Europe/Kiev
/usr/share/javazi/Europe/Kirov
/usr/share/javazi/Europe/Lisbon
/usr/share/javazi/Europe/London
/usr/share/javazi/Europe/Luxembourg
/usr/share/javazi/Europe/Madrid
/usr/share/javazi/Europe/Malta
/usr/share/javazi/Europe/Minsk
/usr/share/javazi/Europe/Monaco
/usr/share/javazi/Europe/Moscow
/usr/share/javazi/Europe/Oslo
/usr/share/javazi/Europe/Paris
/usr/share/javazi/Europe/Prague
/usr/share/javazi/Europe/Riga
/usr/share/javazi/Europe/Rome
/usr/share/javazi/Europe/Samara
/usr/share/javazi/Europe/Saratov
/usr/share/javazi/Europe/Simferopol
/usr/share/javazi/Europe/Sofia
/usr/share/javazi/Europe/Stockholm
/usr/share/javazi/Europe/Tallinn
/usr/share/javazi/Europe/Tirane
/usr/share/javazi/Europe/Ulyanovsk
/usr/share/javazi/Europe/Uzhgorod
/usr/share/javazi/Europe/Vienna
/usr/share/javazi/Europe/Vilnius
/usr/share/javazi/Europe/Volgograd
/usr/share/javazi/Europe/Warsaw
/usr/share/javazi/Europe/Zaporozhye
/usr/share/javazi/Europe/Zurich
/usr/share/javazi/GMT
/usr/share/javazi/HST
/usr/share/javazi/Indian
/usr/share/javazi/Indian/Chagos
/usr/share/javazi/Indian/Christmas
/usr/share/javazi/Indian/Cocos
/usr/share/javazi/Indian/Kerguelen
/usr/share/javazi/Indian/Mahe
/usr/share/javazi/Indian/Maldives
/usr/share/javazi/Indian/Mauritius
/usr/share/javazi/Indian/Reunion
/usr/share/javazi/MET
/usr/share/javazi/MST
/usr/share/javazi/MST7MDT
/usr/share/javazi/PST8PDT
/usr/share/javazi/Pacific
/usr/share/javazi/Pacific/Apia
/usr/share/javazi/Pacific/Auckland
/usr/share/javazi/Pacific/Bougainville
/usr/share/javazi/Pacific/Chatham
/usr/share/javazi/Pacific/Chuuk
/usr/share/javazi/Pacific/Easter
/usr/share/javazi/Pacific/Efate
/usr/share/javazi/Pacific/Enderbury
/usr/share/javazi/Pacific/Fakaofo
/usr/share/javazi/Pacific/Fiji
/usr/share/javazi/Pacific/Funafuti
/usr/share/javazi/Pacific/Galapagos
/usr/share/javazi/Pacific/Gambier
/usr/share/javazi/Pacific/Guadalcanal
/usr/share/javazi/Pacific/Guam
/usr/share/javazi/Pacific/Honolulu
/usr/share/javazi/Pacific/Kiritimati
/usr/share/javazi/Pacific/Kosrae
/usr/share/javazi/Pacific/Kwajalein
/usr/share/javazi/Pacific/Majuro
/usr/share/javazi/Pacific/Marquesas
/usr/share/javazi/Pacific/Nauru
/usr/share/javazi/Pacific/Niue
/usr/share/javazi/Pacific/Norfolk
/usr/share/javazi/Pacific/Noumea
/usr/share/javazi/Pacific/Pago_Pago
/usr/share/javazi/Pacific/Palau
/usr/share/javazi/Pacific/Pitcairn
/usr/share/javazi/Pacific/Pohnpei
/usr/share/javazi/Pacific/Port_Moresby
/usr/share/javazi/Pacific/Rarotonga
/usr/share/javazi/Pacific/Tahiti
/usr/share/javazi/Pacific/Tarawa
/usr/share/javazi/Pacific/Tongatapu
/usr/share/javazi/Pacific/Wake
/usr/share/javazi/Pacific/Wallis
/usr/share/javazi/SystemV
/usr/share/javazi/SystemV/AST4
/usr/share/javazi/SystemV/AST4ADT
/usr/share/javazi/SystemV/CST6
/usr/share/javazi/SystemV/CST6CDT
/usr/share/javazi/SystemV/EST5
/usr/share/javazi/SystemV/EST5EDT
/usr/share/javazi/SystemV/HST10
/usr/share/javazi/SystemV/MST7
/usr/share/javazi/SystemV/MST7MDT
/usr/share/javazi/SystemV/PST8
/usr/share/javazi/SystemV/PST8PDT
/usr/share/javazi/SystemV/YST9
/usr/share/javazi/SystemV/YST9YDT
/usr/share/javazi/WET
/usr/share/javazi/ZoneInfoMappings

References

Summary

In this tutorial we learn how to install tzdata-java on CentOS 8 using yum and dnf.