See InstallingNTPDev? for discussion of this topic.
4. Installing NTP
NTP may be installed from the original source code, released by the
NTP Project at the University of Delaware, or through pre-packaged or pre-compiled versions which may be available from your Operating System vendor/aggregator/distributor.

The instructions shown below for specific operating systems are presented as a courtesy and may not be up to date. These instructions presume that you have properly configured that operating systems package management infrastructure. Users are advised to consult their their operating system documentation for current installation instructions.
4.1. The NTP Project Reference Implementation Distribution
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
-
apt-get install ntp
- Edit
/etc/ntp.conf (see ConfiguringNTP)
- Create any required symlinks for your ref-clock (if you are using one)
- 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
- ...