How To Install sntp.x86_64 on Amazon Linux 2
Introduction
In this tutorial we learn how to install sntp.x86_64
on Amazon Linux 2.
What is sntp.x86_64
sntp can be used as a SNTP client to query a NTP or SNTP server and either display the time or set the local system’s time (given suitable privilege). It can be run as an interactive command or in a cron job.
We can use yum
to install sntp.x86_64
on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install sntp.x86_64.
Install sntp.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 sntp.x86_64
using yum
by running the following command:
sudo yum -y install sntp.x86_64
How To Uninstall sntp.x86_64 on Amazon Linux 2
To uninstall only the sntp.x86_64
package we can use the following command:
sudo yum remove sntp.x86_64
sntp.x86_64 Package Contents on Amazon Linux 2
/etc/sysconfig/sntp
/usr/lib/systemd/system/sntp.service
/usr/sbin/sntp
/usr/share/doc/sntp-4.2.8p15
/usr/share/doc/sntp-4.2.8p15/COPYRIGHT
/usr/share/man/man8/sntp.8.gz
/var/lib/sntp
/var/lib/sntp/kod
References
Summary
In this tutorial we learn how to install sntp.x86_64
on Amazon Linux 2 using yum.