How To Install ntp.x86_64 on Amazon Linux 2
Introduction
In this tutorial we learn how to install ntp.x86_64
on Amazon Linux 2.
What is ntp.x86_64
The Network Time Protocol (NTP) is used to synchronize a computer’s time with another reference time source. This package includes ntpd (a daemon which continuously adjusts system time) and utilities used to query and configure the ntpd daemon. Perl scripts are in the ntp-perl package, ntpdate is in the ntpdate package and sntp is in the sntp package. The documentation in HTML format is in the ntp-doc package.
We can use yum
to install ntp.x86_64
on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install ntp.x86_64.
Install ntp.x86_64 on Amazon Linux 2 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install ntp.x86_64
using yum
by running the following command:
sudo yum -y install ntp.x86_64
How To Uninstall ntp.x86_64 on Amazon Linux 2
To uninstall only the ntp.x86_64
package we can use the following command:
sudo yum remove ntp.x86_64
ntp.x86_64 Package Contents on Amazon Linux 2
/etc/dhcp/dhclient.d
/etc/dhcp/dhclient.d/ntp.sh
/etc/ntp
/etc/ntp.conf
/etc/ntp/crypto
/etc/ntp/crypto/pw
/etc/ntp/keys
/etc/sysconfig/ntpd
/usr/bin/ntpstat
/usr/lib/systemd/ntp-units.d/60-ntpd.list
/usr/lib/systemd/system/ntpd.service
/usr/sbin/ntp-keygen
/usr/sbin/ntpd
/usr/sbin/ntpdc
/usr/sbin/ntpq
/usr/sbin/ntptime
/usr/sbin/tickadj
/usr/share/doc/ntp-4.2.8p15
/usr/share/doc/ntp-4.2.8p15/COPYRIGHT
/usr/share/doc/ntp-4.2.8p15/ChangeLog
/usr/share/doc/ntp-4.2.8p15/NEWS
/usr/share/man/man1/ntpstat.1.gz
/usr/share/man/man5/ntp.conf.5.gz
/usr/share/man/man5/ntp.keys.5.gz
/usr/share/man/man8/ntp-keygen.8.gz
/usr/share/man/man8/ntpd.8.gz
/usr/share/man/man8/ntpdc.8.gz
/usr/share/man/man8/ntpq.8.gz
/usr/share/man/man8/ntptime.8.gz
/usr/share/man/man8/tickadj.8.gz
/var/lib/ntp
/var/lib/ntp/drift
/var/log/ntpstats
References
Summary
In this tutorial we learn how to install ntp.x86_64
on Amazon Linux 2 using yum.