How To Install linuxptp.x86_64 on Amazon Linux 2

In this tutorial we learn how to install linuxptp.x86_64 in Amazon Linux 2. linuxptp.x86_64 is PTP implementation for Linux

Introduction

In this tutorial we learn how to install linuxptp.x86_64 on Amazon Linux 2.

What is linuxptp.x86_64

This software is an implementation of the Precision Time Protocol (PTP) according to IEEE standard 1588 for Linux. The dual design goals are to provide a robust implementation of the standard and to use the most relevant and modern Application Programming Interfaces (API) offered by the Linux kernel. Supporting legacy APIs and other platforms is not a goal.

We can use yum to install linuxptp.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install linuxptp.x86_64.

Install linuxptp.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 linuxptp.x86_64 using yum by running the following command:

sudo yum -y install linuxptp.x86_64

How To Uninstall linuxptp.x86_64 on Amazon Linux 2

To uninstall only the linuxptp.x86_64 package we can use the following command:

sudo yum remove linuxptp.x86_64

linuxptp.x86_64 Package Contents on Amazon Linux 2

/etc/ptp4l.conf
/etc/sysconfig/phc2sys
/etc/sysconfig/ptp4l
/etc/timemaster.conf
/usr/lib/systemd/system/phc2sys.service
/usr/lib/systemd/system/ptp4l.service
/usr/lib/systemd/system/timemaster.service
/usr/sbin/hwstamp_ctl
/usr/sbin/nsm
/usr/sbin/phc2sys
/usr/sbin/phc_ctl
/usr/sbin/pmc
/usr/sbin/ptp4l
/usr/sbin/timemaster
/usr/share/doc/linuxptp-2.0
/usr/share/doc/linuxptp-2.0/COPYING
/usr/share/doc/linuxptp-2.0/README.org
/usr/share/doc/linuxptp-2.0/configs
/usr/share/doc/linuxptp-2.0/configs/E2E-TC.cfg
/usr/share/doc/linuxptp-2.0/configs/G.8265.1.cfg
/usr/share/doc/linuxptp-2.0/configs/G.8275.1.cfg
/usr/share/doc/linuxptp-2.0/configs/G.8275.2.cfg
/usr/share/doc/linuxptp-2.0/configs/P2P-TC.cfg
/usr/share/doc/linuxptp-2.0/configs/UNICAST-MASTER.cfg
/usr/share/doc/linuxptp-2.0/configs/UNICAST-SLAVE.cfg
/usr/share/doc/linuxptp-2.0/configs/default.cfg
/usr/share/doc/linuxptp-2.0/configs/gPTP.cfg
/usr/share/man/man5/ptp4l.conf.5.gz
/usr/share/man/man5/timemaster.conf.5.gz
/usr/share/man/man8/hwstamp_ctl.8.gz
/usr/share/man/man8/phc2sys.8.gz
/usr/share/man/man8/phc_ctl.8.gz
/usr/share/man/man8/pmc.8.gz
/usr/share/man/man8/ptp4l.8.gz
/usr/share/man/man8/timemaster.8.gz

References

Summary

In this tutorial we learn how to install linuxptp.x86_64 on Amazon Linux 2 using yum.