[ntp:questions] Unexpected executable locations from "sudo make install" on RPi Linux
kostecke at ntp.org
Fri Nov 15 16:20:43 UTC 2013
On 2013-11-15, David Taylor <david-taylor at blueyonder.co.uk.invalid> wrote:
> I have compiled and installed NTP on a number of Raspberry Pi Linux
> systems, variants of Debian Wheezy, but on one I see that when I run:
> $ sudo make install
> I get the executables files in two different directories:
Here's where Debian installs the various NTP executables:
me at home:~$ dpkg -L ntp-dev | grep bin
> ntpdc ntpq & ntptrace => /usr/local/sbin
You probably meant /usr/local/bin
> ntpd ntpdate ntp-keygen ntptime & ntp-wait => /usr/local/sbin
That looks right.
> I was expecting all the executables to be in /usr/local/bin/. Why might
> this be? Linux is not well known to me.
First of all you have to know the difference between /usr and
/usr/local as defined in the (Linux) FHS:
/usr -- Secondary hierarchy for read-only user data; contains the
majority of (multi-)user utilities and applications.
/usr/local -- Tertiary hierarchy for local data, specific to this host.
Typically has further subdirectories, e.g., bin/, lib/, share/. By
convention used for data/software which is not a part of the OS.
Then you have to know the differnce between ./bin and ./sbin
/usr/bin -- Non-essential command binaries (not needed in single user
mode); for all users.
/usr/sbin -- Non-essential system binaries, e.g., daemons for various
network-services. These binaries are primarily intended for use by root
or other privileged users.
/usr/local/bin and /usr/local/sbin are the local equivalent of /usr and
/usr/sbin. They're typically used for software which is installed
outside of the OS package management system.
You may find the articles at
and https://news.ycombinator.com/item?id=3519952 illuminating.
All of the is, BTW, trivial to dig up with your favorite search engine
Steve Kostecke <kostecke at ntp.org>
NTP Public Services Project - http://support.ntp.org/
More information about the questions