Often times, during troubleshooting an issue, you may find that a file is either corrupted, missing data, or it simply needs to be reinstalled.
Most users often think to try and copy or transfer the file from a similar server. Whilst this may work, it is possible that version differences can cause issues as well as customizations, or configuration differences. As such, the best method is to determine what package provides the file and then determine the best way to redownload or obtain that file once again.
Using the RPM command utility use "
-f" flag to specify a file to query.
In this case, we have a problem with "
[root@the ~]$ rpm -qf /usr/share/zoneinfo/UTC
The RPM command reveals that the RPM "
tzdata-2019c-1.el7.noarch" provides the file we need to replace.
In this case, a simple re-install via YUM should allow us to obtain the file we need.
yum reinstall tzdata-2019c-1.el7.noarch