Can we install ntp on rocky?

Seems like rocky by default using Chrony for time synchronization, but is it still possible to install ntp?

Thanks,

Rocky 8 and 9 have package ntpstat in appstream repo, but no ā€œgood oldā€ NTP.
Quite obviously Red Hat does not like to maintain two packages for same task in RHEL.

The question is probably whether your NTP package can satisfy package dependencies ā€¦ and how, for example the NetworkManager.service hands time-server data from DHCP to the time service (chronyd/ntpd/ā€¦).

Now that I think of it, the Ansible RHEL System Roles for timesync is aware of 4-5 different time services. While it apparently can configure any of them, that might not be feasible in RHEL.

We have ntp installed on a Rocky 9 server. Some software on it required the ā€˜ntpdateā€™ command. Download the ntp source, and run the usual ā€˜configure; make; make check; make installā€™ commands. It builds easy, and works fine. It installs into ā€˜/usr/local/binā€™. (By default our servers have development packages on them, so you may need to install various ā€˜develā€™ packages since you are building something from source.)

Rocky Linux 9 has ntpsec package which has ntpd daemon. The ntpstat package doesnā€™t have ntpd. Chrony can also communicate with NTP on port 123 when configured appropriately.

A repoquery shows that ntpsec also has the ntpdate command in it. Thanks for that, Iā€™ll take a look at it for our server.

1 Like