How To Install ntpsec on Fedora 34

ntpsec is NTP daemon and utilities NTP daemon and utilities

Introduction

In this tutorial we learn how to install ntpsec on Fedora 34.

What is ntpsec

NTPsec is a more secure and improved implementation of the Network Time Protocol derived from the original NTP project. ntpsec 1.2.1 3.fc34 x86_64 541 k ntpsec-1.2.1-3.fc34.src.rpm updates NTP daemon and utilities https MIT and BSD and BSD with advertising and ISC and ASL 2.0 NTPsec is a more secure and improved implementation of the Network Time Protocol derived from the original NTP project.

We can use yum or dnf to install ntpsec on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install ntpsec.

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

sudo dnf -y install ntpsec

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

sudo yum -y install ntpsec

How To Uninstall ntpsec on Fedora 34

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

sudo dnf remove ntpsec

ntpsec Package Contents on Fedora 34

/etc/logrotate.d
/etc/logrotate.d/ntpsec.conf
/etc/ntp.conf
/usr/bin/ntpdig
/usr/bin/ntpfrob
/usr/bin/ntpkeygen
/usr/bin/ntpleapfetch
/usr/bin/ntplogtemp
/usr/bin/ntpmon
/usr/bin/ntpsnmpd
/usr/bin/ntpsweep
/usr/bin/ntptime
/usr/bin/ntptrace
/usr/bin/ntpviz
/usr/bin/ntpwait
/usr/lib/.build-id
/usr/lib/.build-id/28
/usr/lib/.build-id/28/5253767ac7ffe881e05138858a005791e1e47e
/usr/lib/.build-id/82
/usr/lib/.build-id/82/00c0b7eda67a79608e671ea840c585d629b9a3
/usr/lib/.build-id/c1
/usr/lib/.build-id/c1/d5d016477ec03060189057786e0883245e7e6d
/usr/lib/.build-id/d4
/usr/lib/.build-id/d4/71b9262786461731a8912af9aaa154b2b56270
/usr/lib/systemd/ntp-units.d/60-ntpd.list
/usr/lib/systemd/system/ntp-wait.service
/usr/lib/systemd/system/ntpd.service
/usr/lib/systemd/system/ntplogtemp.service
/usr/lib/systemd/system/ntplogtemp.timer
/usr/lib/systemd/system/ntpviz-daily.service
/usr/lib/systemd/system/ntpviz-daily.timer
/usr/lib/systemd/system/ntpviz-weekly.service
/usr/lib/systemd/system/ntpviz-weekly.timer
/usr/lib64/libntpc.so
/usr/lib64/libntpc.so.1
/usr/lib64/libntpc.so.1.1.0
/usr/lib64/python3.9/site-packages/ntp
/usr/lib64/python3.9/site-packages/ntp-1.2.1.egg-info
/usr/lib64/python3.9/site-packages/ntp/__init__.py
/usr/lib64/python3.9/site-packages/ntp/__pycache__
/usr/lib64/python3.9/site-packages/ntp/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/__init__.cpython-39.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/__init__.cpython-39.pyo
/usr/lib64/python3.9/site-packages/ntp/__pycache__/agentx.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/agentx.cpython-39.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/agentx.cpython-39.pyo
/usr/lib64/python3.9/site-packages/ntp/__pycache__/agentx_packet.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/agentx_packet.cpython-39.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/agentx_packet.cpython-39.pyo
/usr/lib64/python3.9/site-packages/ntp/__pycache__/control.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/control.cpython-39.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/control.cpython-39.pyo
/usr/lib64/python3.9/site-packages/ntp/__pycache__/magic.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/magic.cpython-39.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/magic.cpython-39.pyo
/usr/lib64/python3.9/site-packages/ntp/__pycache__/ntpc.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/ntpc.cpython-39.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/ntpc.cpython-39.pyo
/usr/lib64/python3.9/site-packages/ntp/__pycache__/packet.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/packet.cpython-39.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/packet.cpython-39.pyo
/usr/lib64/python3.9/site-packages/ntp/__pycache__/poly.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/poly.cpython-39.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/poly.cpython-39.pyo
/usr/lib64/python3.9/site-packages/ntp/__pycache__/statfiles.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/statfiles.cpython-39.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/statfiles.cpython-39.pyo
/usr/lib64/python3.9/site-packages/ntp/__pycache__/util.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/util.cpython-39.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/util.cpython-39.pyo
/usr/lib64/python3.9/site-packages/ntp/agentx.py
/usr/lib64/python3.9/site-packages/ntp/agentx_packet.py
/usr/lib64/python3.9/site-packages/ntp/control.py
/usr/lib64/python3.9/site-packages/ntp/magic.py
/usr/lib64/python3.9/site-packages/ntp/ntpc.py
/usr/lib64/python3.9/site-packages/ntp/packet.py
/usr/lib64/python3.9/site-packages/ntp/poly.py
/usr/lib64/python3.9/site-packages/ntp/statfiles.py
/usr/lib64/python3.9/site-packages/ntp/util.py
/usr/sbin/ntpd
/usr/sbin/ntpdate
/usr/sbin/ntpq
/usr/share/doc/ntpsec
/usr/share/doc/ntpsec/NEWS.adoc
/usr/share/doc/ntpsec/README.adoc
/usr/share/licenses/ntpsec
/usr/share/licenses/ntpsec/LICENSE.adoc
/usr/share/man/man1/ntpdig.1.gz
/usr/share/man/man1/ntplogtemp.1.gz
/usr/share/man/man1/ntpmon.1.gz
/usr/share/man/man1/ntpq.1.gz
/usr/share/man/man1/ntpsweep.1.gz
/usr/share/man/man1/ntptrace.1.gz
/usr/share/man/man1/ntpviz.1.gz
/usr/share/man/man5/ntp.conf.5.gz
/usr/share/man/man5/ntp.keys.5.gz
/usr/share/man/man8/ntpd.8.gz
/usr/share/man/man8/ntpfrob.8.gz
/usr/share/man/man8/ntpkeygen.8.gz
/usr/share/man/man8/ntpleapfetch.8.gz
/usr/share/man/man8/ntpsnmpd.8.gz
/usr/share/man/man8/ntptime.8.gz
/usr/share/man/man8/ntpwait.8.gz
/var/lib/ntp
/var/lib/ntp/ntp.drift
/var/log/ntpstats
/etc/logrotate.d
/etc/logrotate.d/ntpsec.conf
/etc/ntp.conf
/usr/bin/ntpdig
/usr/bin/ntpfrob
/usr/bin/ntpkeygen
/usr/bin/ntpleapfetch
/usr/bin/ntplogtemp
/usr/bin/ntpmon
/usr/bin/ntpsnmpd
/usr/bin/ntpsweep
/usr/bin/ntptime
/usr/bin/ntptrace
/usr/bin/ntpviz
/usr/bin/ntpwait
/usr/lib/.build-id
/usr/lib/.build-id/5a
/usr/lib/.build-id/5a/6e3fabe25522752436c6af071770c4e056dabd
/usr/lib/.build-id/82
/usr/lib/.build-id/82/c37be589a4cc8f33ca8b702a5f359292237f75
/usr/lib/.build-id/90
/usr/lib/.build-id/90/02b9f6527f86569314030289cc3e8a5d234098
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/f38a26d658a36a0fc691b738a05b415db25bec
/usr/lib/libntpc.so
/usr/lib/libntpc.so.1
/usr/lib/libntpc.so.1.1.0
/usr/lib/python3.9/site-packages/ntp
/usr/lib/python3.9/site-packages/ntp-1.2.1.egg-info
/usr/lib/python3.9/site-packages/ntp/__init__.py
/usr/lib/python3.9/site-packages/ntp/__pycache__
/usr/lib/python3.9/site-packages/ntp/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ntp/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/ntp/__pycache__/__init__.cpython-39.pyo
/usr/lib/python3.9/site-packages/ntp/__pycache__/agentx.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ntp/__pycache__/agentx.cpython-39.pyc
/usr/lib/python3.9/site-packages/ntp/__pycache__/agentx.cpython-39.pyo
/usr/lib/python3.9/site-packages/ntp/__pycache__/agentx_packet.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ntp/__pycache__/agentx_packet.cpython-39.pyc
/usr/lib/python3.9/site-packages/ntp/__pycache__/agentx_packet.cpython-39.pyo
/usr/lib/python3.9/site-packages/ntp/__pycache__/control.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ntp/__pycache__/control.cpython-39.pyc
/usr/lib/python3.9/site-packages/ntp/__pycache__/control.cpython-39.pyo
/usr/lib/python3.9/site-packages/ntp/__pycache__/magic.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ntp/__pycache__/magic.cpython-39.pyc
/usr/lib/python3.9/site-packages/ntp/__pycache__/magic.cpython-39.pyo
/usr/lib/python3.9/site-packages/ntp/__pycache__/ntpc.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ntp/__pycache__/ntpc.cpython-39.pyc
/usr/lib/python3.9/site-packages/ntp/__pycache__/ntpc.cpython-39.pyo
/usr/lib/python3.9/site-packages/ntp/__pycache__/packet.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ntp/__pycache__/packet.cpython-39.pyc
/usr/lib/python3.9/site-packages/ntp/__pycache__/packet.cpython-39.pyo
/usr/lib/python3.9/site-packages/ntp/__pycache__/poly.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ntp/__pycache__/poly.cpython-39.pyc
/usr/lib/python3.9/site-packages/ntp/__pycache__/poly.cpython-39.pyo
/usr/lib/python3.9/site-packages/ntp/__pycache__/statfiles.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ntp/__pycache__/statfiles.cpython-39.pyc
/usr/lib/python3.9/site-packages/ntp/__pycache__/statfiles.cpython-39.pyo
/usr/lib/python3.9/site-packages/ntp/__pycache__/util.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ntp/__pycache__/util.cpython-39.pyc
/usr/lib/python3.9/site-packages/ntp/__pycache__/util.cpython-39.pyo
/usr/lib/python3.9/site-packages/ntp/agentx.py
/usr/lib/python3.9/site-packages/ntp/agentx_packet.py
/usr/lib/python3.9/site-packages/ntp/control.py
/usr/lib/python3.9/site-packages/ntp/magic.py
/usr/lib/python3.9/site-packages/ntp/ntpc.py
/usr/lib/python3.9/site-packages/ntp/packet.py
/usr/lib/python3.9/site-packages/ntp/poly.py
/usr/lib/python3.9/site-packages/ntp/statfiles.py
/usr/lib/python3.9/site-packages/ntp/util.py
/usr/lib/systemd/ntp-units.d/60-ntpd.list
/usr/lib/systemd/system/ntp-wait.service
/usr/lib/systemd/system/ntpd.service
/usr/lib/systemd/system/ntplogtemp.service
/usr/lib/systemd/system/ntplogtemp.timer
/usr/lib/systemd/system/ntpviz-daily.service
/usr/lib/systemd/system/ntpviz-daily.timer
/usr/lib/systemd/system/ntpviz-weekly.service
/usr/lib/systemd/system/ntpviz-weekly.timer
/usr/sbin/ntpd
/usr/sbin/ntpdate
/usr/sbin/ntpq
/usr/share/doc/ntpsec
/usr/share/doc/ntpsec/NEWS.adoc
/usr/share/doc/ntpsec/README.adoc
/usr/share/licenses/ntpsec
/usr/share/licenses/ntpsec/LICENSE.adoc
/usr/share/man/man1/ntpdig.1.gz
/usr/share/man/man1/ntplogtemp.1.gz
/usr/share/man/man1/ntpmon.1.gz
/usr/share/man/man1/ntpq.1.gz
/usr/share/man/man1/ntpsweep.1.gz
/usr/share/man/man1/ntptrace.1.gz
/usr/share/man/man1/ntpviz.1.gz
/usr/share/man/man5/ntp.conf.5.gz
/usr/share/man/man5/ntp.keys.5.gz
/usr/share/man/man8/ntpd.8.gz
/usr/share/man/man8/ntpfrob.8.gz
/usr/share/man/man8/ntpkeygen.8.gz
/usr/share/man/man8/ntpleapfetch.8.gz
/usr/share/man/man8/ntpsnmpd.8.gz
/usr/share/man/man8/ntptime.8.gz
/usr/share/man/man8/ntpwait.8.gz
/var/lib/ntp
/var/lib/ntp/ntp.drift
/var/log/ntpstats
/etc/logrotate.d
/etc/logrotate.d/ntpsec.conf
/etc/ntp.conf
/usr/bin/ntpdig
/usr/bin/ntpfrob
/usr/bin/ntpkeygen
/usr/bin/ntpleapfetch
/usr/bin/ntplogtemp
/usr/bin/ntpmon
/usr/bin/ntpsnmpd
/usr/bin/ntpsweep
/usr/bin/ntptime
/usr/bin/ntptrace
/usr/bin/ntpviz
/usr/bin/ntpwait
/usr/lib/.build-id
/usr/lib/.build-id/84
/usr/lib/.build-id/84/8b4cfac3441b4932fad910b67e9607f078cf5b
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/03f70eabcefcf92da24e4f2bf8275fb473c608
/usr/lib/.build-id/a5/7628f9e14bf346e076619749ab30241ef7fe37
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/a727baa1fb7dd560ccd5f7974db0790e9ea822
/usr/lib/systemd/ntp-units.d/60-ntpd.list
/usr/lib/systemd/system/ntp-wait.service
/usr/lib/systemd/system/ntpd.service
/usr/lib/systemd/system/ntplogtemp.service
/usr/lib/systemd/system/ntplogtemp.timer
/usr/lib/systemd/system/ntpviz-daily.service
/usr/lib/systemd/system/ntpviz-daily.timer
/usr/lib/systemd/system/ntpviz-weekly.service
/usr/lib/systemd/system/ntpviz-weekly.timer
/usr/lib64/ntp
/usr/lib64/ntp/libntpc.so
/usr/lib64/ntp/libntpc.so.1
/usr/lib64/ntp/libntpc.so.1.1.0
/usr/lib64/python3.9/site-packages/ntp
/usr/lib64/python3.9/site-packages/ntp-1.2.0.egg-info
/usr/lib64/python3.9/site-packages/ntp/__init__.py
/usr/lib64/python3.9/site-packages/ntp/__pycache__
/usr/lib64/python3.9/site-packages/ntp/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/__init__.cpython-39.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/__init__.cpython-39.pyo
/usr/lib64/python3.9/site-packages/ntp/__pycache__/agentx.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/agentx.cpython-39.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/agentx.cpython-39.pyo
/usr/lib64/python3.9/site-packages/ntp/__pycache__/agentx_packet.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/agentx_packet.cpython-39.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/agentx_packet.cpython-39.pyo
/usr/lib64/python3.9/site-packages/ntp/__pycache__/control.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/control.cpython-39.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/control.cpython-39.pyo
/usr/lib64/python3.9/site-packages/ntp/__pycache__/magic.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/magic.cpython-39.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/magic.cpython-39.pyo
/usr/lib64/python3.9/site-packages/ntp/__pycache__/ntpc.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/ntpc.cpython-39.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/ntpc.cpython-39.pyo
/usr/lib64/python3.9/site-packages/ntp/__pycache__/packet.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/packet.cpython-39.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/packet.cpython-39.pyo
/usr/lib64/python3.9/site-packages/ntp/__pycache__/poly.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/poly.cpython-39.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/poly.cpython-39.pyo
/usr/lib64/python3.9/site-packages/ntp/__pycache__/statfiles.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/statfiles.cpython-39.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/statfiles.cpython-39.pyo
/usr/lib64/python3.9/site-packages/ntp/__pycache__/util.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/util.cpython-39.pyc
/usr/lib64/python3.9/site-packages/ntp/__pycache__/util.cpython-39.pyo
/usr/lib64/python3.9/site-packages/ntp/agentx.py
/usr/lib64/python3.9/site-packages/ntp/agentx_packet.py
/usr/lib64/python3.9/site-packages/ntp/control.py
/usr/lib64/python3.9/site-packages/ntp/magic.py
/usr/lib64/python3.9/site-packages/ntp/ntpc.py
/usr/lib64/python3.9/site-packages/ntp/packet.py
/usr/lib64/python3.9/site-packages/ntp/poly.py
/usr/lib64/python3.9/site-packages/ntp/statfiles.py
/usr/lib64/python3.9/site-packages/ntp/util.py
/usr/sbin/ntpd
/usr/sbin/ntpdate
/usr/sbin/ntpq
/usr/share/doc/ntpsec
/usr/share/doc/ntpsec/NEWS.adoc
/usr/share/doc/ntpsec/README.adoc
/usr/share/licenses/ntpsec
/usr/share/licenses/ntpsec/LICENSE.adoc
/usr/share/man/man1/ntpdig.1.gz
/usr/share/man/man1/ntplogtemp.1.gz
/usr/share/man/man1/ntpmon.1.gz
/usr/share/man/man1/ntpq.1.gz
/usr/share/man/man1/ntpsweep.1.gz
/usr/share/man/man1/ntptrace.1.gz
/usr/share/man/man1/ntpviz.1.gz
/usr/share/man/man5/ntp.conf.5.gz
/usr/share/man/man5/ntp.keys.5.gz
/usr/share/man/man8/ntpd.8.gz
/usr/share/man/man8/ntpfrob.8.gz
/usr/share/man/man8/ntpkeygen.8.gz
/usr/share/man/man8/ntpleapfetch.8.gz
/usr/share/man/man8/ntpsnmpd.8.gz
/usr/share/man/man8/ntptime.8.gz
/usr/share/man/man8/ntpwait.8.gz
/var/lib/ntp
/var/lib/ntp/ntp.drift
/var/log/ntpstats

References

Summary

In this tutorial we learn how to install ntpsec on Fedora 34 using yum and dnf.