Page 1 of 1

yum update with a future date

Posted: 2018/03/12 22:22:50
by upszot
I have a server with a future date, with which the time synchronization service keeps it disabled and stopping.
when I perform a yum update, although it keeps the service disabled, it corrects the system date and time.
How can I perform an update by ensuring that I do not touch the system's date and time?

Thank you.

Re: yum update with a future date

Posted: 2018/03/13 00:03:18
by TrevorH
What packages get updated when it changes the time? I doubt if it's yum itself doing this, more likely that it's a post-script of some package that was updated

Re: yum update with a future date

Posted: 2018/03/15 14:38:02
by upszot
I went back to update another server and again the same ...

1) ntpd and chronyd -> disable and stoped. ... OK
2) #date -> is future... OK
3) yum update
This is the list of packages.
----------------------------------------------------------
Loaded plugins: product-id, rhnplugin, search-disabled-repos, subscription-
: manager
This system is receiving updates from RHN Classic or Red Hat Satellite.
RHSA-2018:0483 security dhclient-12:4.2.5-58.el7_4.3.x86_64
RHSA-2018:0483 security dhcp-common-12:4.2.5-58.el7_4.3.x86_64
RHSA-2018:0483 security dhcp-libs-12:4.2.5-58.el7_4.3.x86_64
updateinfo list done
----------------------------------------------------------------
4) after updating...
4) I check again, ntpd and chronyd -> disable and stoped... OK
5) #date ... we are still in the future -> OK
6) # reboot
....
....
....
when the system returns ....
7) #date -> brought me to the present. :cry: :?
8) re-check the services ntpd and chronyd -> disable and stoped...... :shock:

any ideas?

Re: yum update with a future date

Posted: 2018/03/15 15:43:55
by TrevorH
Other than that isn't CentOS, no.

Re: yum update with a future date

Posted: 2018/03/15 16:03:21
by avij
Your initial description was incorrect. As you wrote in your later message, time was OK after "yum update". Your system may have a "one-shot" clock synchronization step in its startup scripts. If you don't care about synchronizing the time with some other host, you could just as well yum remove chrony ntp to remove the programs used for time synchronization. Perhaps that is sufficient.

For further assistance please turn to Red Hat, as your system seems to be Red Hat Enterprise Linux instead of CentOS.