How To Install chrony on Fedora 36
Introduction
In this tutorial we learn how to install chrony
on Fedora 36.
What is chrony
chrony is a versatile implementation of the Network Time Protocol (NTP). It can synchronise the system clock with NTP servers, reference clocks (e.g. GPS receiver), and manual input using wristwatch and keyboard. It can also operate as an NTPv4 (RFC 5905) server and peer to provide a time service to other computers in the network.
We can use yum
or dnf
to install chrony
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install chrony.
Install chrony on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install chrony
using dnf
by running the following command:
sudo dnf -y install chrony
Install chrony on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install chrony
using yum
by running the following command:
sudo yum -y install chrony
How To Uninstall chrony on Fedora 36
To uninstall only the chrony
package we can use the following command:
sudo dnf remove chrony
chrony Package Contents on Fedora 36
/etc/chrony.conf
/etc/chrony.keys
/etc/dhcp/dhclient.d/chrony.sh
/etc/logrotate.d/chrony
/etc/sysconfig/chronyd
/usr/bin/chronyc
/usr/lib/.build-id
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/e66bb90ae764d8278ada95ca4d11e91983ab0e
/usr/lib/.build-id/bf
/usr/lib/.build-id/bf/78c0e2c1dafe135a72377c57d5539c12772b30
/usr/lib/NetworkManager
/usr/lib/NetworkManager/dispatcher.d
/usr/lib/NetworkManager/dispatcher.d/20-chrony-dhcp
/usr/lib/NetworkManager/dispatcher.d/20-chrony-onoffline
/usr/lib/systemd/ntp-units.d/50-chronyd.list
/usr/lib/systemd/system/chrony-wait.service
/usr/lib/systemd/system/chronyd.service
/usr/sbin/chronyd
/usr/share/doc/chrony
/usr/share/doc/chrony/FAQ
/usr/share/doc/chrony/NEWS
/usr/share/doc/chrony/README
/usr/share/licenses/chrony
/usr/share/licenses/chrony/COPYING
/usr/share/man/man1/chronyc.1.gz
/usr/share/man/man5/chrony.conf.5.gz
/usr/share/man/man8/chronyd.8.gz
/var/lib/chrony
/var/lib/chrony/drift
/var/lib/chrony/rtc
/var/log/chrony
References
Summary
In this tutorial we learn how to install chrony
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).