See InstallingNTPDev? for discussion of this topic.
4. Installing NTP
The NTP project only produces source code releases of NTP. Pre-packaged or pre-compiled versions may be available from your Operating System vendor/aggregator/distributor.

The instructions shown below for specific operating systems presume that you have properly configured that operating systems package management infrastructure. You may need to also consult your operating system documentation.

See
DesigningYourNTPNetwork for information about the overall layout of NTP on your network.
4.1. The NTP Project Reference Implementation
Users attempting to install NTP from source code should have some experience compiling software on UNIX or a Unix-like operating system.
The following software is used when installing NTP source code:
- A C compiler
-
make (note that on some platforms, building outside of the main source directory requires GNU make.)
-
tar
-
gunzip
-
libcap (note: needed for linux only if you wish to enable linux capabilities to drop root privileges and chroot ntpd)
Installation HOWTO
- Download and unpack a tarball from SoftwareDownloads
- Read and follow the directions in the
INSTALL file
- See ConfiguringNTP for information about how to configure NTP
- Add the
init scripts, etc., to make NTP start at boot time
4.2. Debian GNU/Linux
If you will be synchronizing to remote time servers:
-
apt-get install ntp-server ntp-simple
- edit
/etc/ntp.conf (see ConfiguringNTP)
- restart
ntpd with /etc/init.d/ntp-server restart
If you will using a ref-clock (e.g. GPS, WWVB, CHU):
-
apt-get install ntp-server ntp-refclock
- edit
/etc/ntp.conf (see ConfiguringNTP)
- create any required symlinks for your ref-clock
- restart
ntpd with /etc/init.d/ntp-server restart
4.3. FreeBSD
-
cd /usr/ports/net/ntp
-
make install clean
- edit
/etc/ntp.conf (see ConfiguringNTP)
- edit
/etc/rc.conf
- create any required symlinks for your ref-clock (if you are using one)
- start
ntpd with /etc/rc.d/ntpd start
4.4. NetBSD
- ...
4.5. OpenBSD
- ...
4.6. Microsoft Windows
- ...