How To Install linuxptp on Fedora 36

In this tutorial we learn how to install linuxptp in Fedora 36. linuxptp is PTP implementation for Linux

Introduction

In this tutorial we learn how to install linuxptp on Fedora 36.

What is linuxptp

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 or dnf to install linuxptp on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install linuxptp.

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

sudo dnf -y install linuxptp

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

sudo yum -y install linuxptp

How To Uninstall linuxptp on Fedora 36

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

sudo dnf remove linuxptp

linuxptp Package Contents on Fedora 36

/etc/ptp4l.conf
/etc/sysconfig/phc2sys
/etc/sysconfig/ptp4l
/etc/timemaster.conf
/usr/lib/.build-id
/usr/lib/.build-id/14
/usr/lib/.build-id/14/1e91597b0cdbfb55a0bb9409b69f4d9a7f9fdb
/usr/lib/.build-id/2f
/usr/lib/.build-id/2f/fdddc5f83170e05788decb102767d6e10e9378
/usr/lib/.build-id/4d
/usr/lib/.build-id/4d/54e37c8ec3c3b71f7facb77adc3fd850001f18
/usr/lib/.build-id/4f
/usr/lib/.build-id/4f/532c23e4acedc3bcabf8c2c2cd83c7dfbad2ee
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/c3ed84da29085e88b0e18c29b385b3ab199ef9
/usr/lib/.build-id/75
/usr/lib/.build-id/75/449b6b50c2d5eb23cb40ebcea3c6bba9306569
/usr/lib/.build-id/d3
/usr/lib/.build-id/d3/289bf05c819b3150f13500f8f73ee70a9e67e9
/usr/lib/.build-id/f2
/usr/lib/.build-id/f2/c51f97a5f9d5ac9a8a9837bab05531045a295b
/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/sbin/ts2phc
/usr/share/doc/linuxptp
/usr/share/doc/linuxptp/COPYING
/usr/share/doc/linuxptp/README.org
/usr/share/doc/linuxptp/configs
/usr/share/doc/linuxptp/configs/E2E-TC.cfg
/usr/share/doc/linuxptp/configs/G.8265.1.cfg
/usr/share/doc/linuxptp/configs/G.8275.1.cfg
/usr/share/doc/linuxptp/configs/G.8275.2.cfg
/usr/share/doc/linuxptp/configs/P2P-TC.cfg
/usr/share/doc/linuxptp/configs/UNICAST-MASTER.cfg
/usr/share/doc/linuxptp/configs/UNICAST-SLAVE.cfg
/usr/share/doc/linuxptp/configs/automotive-master.cfg
/usr/share/doc/linuxptp/configs/automotive-slave.cfg
/usr/share/doc/linuxptp/configs/default.cfg
/usr/share/doc/linuxptp/configs/gPTP.cfg
/usr/share/doc/linuxptp/configs/snmpd.conf
/usr/share/doc/linuxptp/configs/ts2phc-TC.cfg
/usr/share/doc/linuxptp/configs/ts2phc-generic.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/nsm.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
/usr/share/man/man8/ts2phc.8.gz

References

Summary

In this tutorial we learn how to install linuxptp on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).