How To Install linuxptp on Fedora 34
Introduction
In this tutorial we learn how to install linuxptp on Fedora 34.
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 34. In this tutorial we discuss both methods but you only need to choose one of method to install linuxptp.
Install linuxptp on Fedora 34 Using dnf
Update yum database with dnf using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install linuxptp using dnf by running the following command:
sudo dnf -y install linuxptp
Install linuxptp on Fedora 34 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
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 34
To uninstall only the linuxptp package we can use the following command:
sudo dnf remove linuxptp
linuxptp Package Contents on Fedora 34
/etc/ptp4l.conf
/etc/sysconfig/phc2sys
/etc/sysconfig/ptp4l
/etc/timemaster.conf
/usr/lib/.build-id
/usr/lib/.build-id/0a
/usr/lib/.build-id/0a/3a6b20063050fc0974dc3f33203e8260c894dd
/usr/lib/.build-id/31
/usr/lib/.build-id/31/a06956934f48eaf6ce520f8ef2287127f6c886
/usr/lib/.build-id/7b
/usr/lib/.build-id/7b/e13a6ba3d88f4883f98c4c79b8d54037b87428
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/7cb9ec49ebbc361e3c53728fd53f143bd3c549
/usr/lib/.build-id/bf
/usr/lib/.build-id/bf/1c6c860c55e8b95c5ad7c0cc35475a7aea4e6e
/usr/lib/.build-id/c7
/usr/lib/.build-id/c7/e899447b48cba9871afcc67a37f228f019ee74
/usr/lib/.build-id/e6
/usr/lib/.build-id/e6/04bab85f8cdffc9174975557166e27ad9dbd26
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/89fc7fe023432497ed18767acf2d59739c7904
/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
/etc/ptp4l.conf
/etc/sysconfig/phc2sys
/etc/sysconfig/ptp4l
/etc/timemaster.conf
/usr/lib/.build-id
/usr/lib/.build-id/20
/usr/lib/.build-id/20/fa5bc5c698d50ccfdf9f45e84128acb6ad89ab
/usr/lib/.build-id/28
/usr/lib/.build-id/28/074e94f99525c3c188a0841b5098ae6fd49c67
/usr/lib/.build-id/50
/usr/lib/.build-id/50/552a173499f67c3be90354499ab26d0a510476
/usr/lib/.build-id/5b
/usr/lib/.build-id/5b/06f5743e5faf81395974a0a3456c2a2b528065
/usr/lib/.build-id/64
/usr/lib/.build-id/64/dd8fc7b478ef0bf1982c2a4ab5de12b2fcef2b
/usr/lib/.build-id/77
/usr/lib/.build-id/77/475697bbe42633b426d44d67924e29269255d9
/usr/lib/.build-id/91
/usr/lib/.build-id/91/3ad7d5e49889132ada42188fdcc39ec6bb8049
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/e6eb16eb46514a1b16680a7bd8dc139b21b16b
/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 34 using yum and dnf.