yum update with a future date

General support questions
Post Reply
upszot
Posts: 2
Joined: 2018/03/12 22:14:39

yum update with a future date

Post by upszot » 2018/03/12 22:22:50

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.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: yum update with a future date

Post by TrevorH » 2018/03/13 00:03:18

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
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

upszot
Posts: 2
Joined: 2018/03/12 22:14:39

Re: yum update with a future date

Post by upszot » 2018/03/15 14:38:02

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?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: yum update with a future date

Post by TrevorH » 2018/03/15 15:43:55

Other than that isn't CentOS, no.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: yum update with a future date

Post by avij » 2018/03/15 16:03:21

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.

Post Reply