1. Extract the source code to /USR/LOCAL/SRC
Cd/usr/local/src
Tar-zxvf/root/ntp-4.2.4p7.tar.gz
2. View readme/instll file
cdntp-4.2.4p7/
Moreinstall
3.generate The makefile file, specifying that it will be installed in the/USR/LOCAL/NTP directory in the future. If not specified, it is installed to the/usr/local directory by default .
./configure--help|more Viewing the parameters available at compile time
./configure--prefix=/usr/local/ntp
4. Compile and install
Makeclean
Make
Makecheck
Makeinstall
5. Add the mag page ofthe software to the man path search: Add a linein/etc/man.config: manpaht/usr/local/ntp/ Mans
or use the command man-m/usr/local/ntp/man ntpd to view Help.
6. Remove the software
Modify /etc/man.config
Cd/root
RM ntp-4.2.4p7.tar.gz
rm-rf/usr/local/src/ntp-4.2.4p7/
rm-rf/usr/local/ntp/
Linux Learning Note nine: General tarball Software Installation process (take ntp-4.2.4p7.tar.gz as an example)