Installing the software

Installing the package

Before we install any packages we should ensure that the correct use-flags are configured so that all required functionality is made available and unnecessary functionality is not included. The net-misc/ntp and its dependencies provide a variety of use-flags only some of which will be discussed further here. As usual feel free to add and remove use-flags at will although the minimum set which are required for using this guide in its entirety are shown below.

lisa emerge -pv ntp
 
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild      ] net-misc/ntp-4.2.4_p7  USE="caps ipv6 ssl -debug -openntpd -parse-clocks -vim-syntax -zeroconf"
Caution:
The caps use-flag is of particular importance as it allows the NTP daemon to drop unnecessary privileges after initialisation is complete reducing the vulnerability of the system to an attack using NTP packets as the attack vector.
 

Once you are confident that the correct use-flags are set for the net-misc/ntp package, and any dependencies it may require, you can proceed with the installation by issuing the emerge command shown below.

lisa emerge ntp