On 2013-11-15, David Taylor <[email protected]> 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@home:~$ dpkg -L ntp-dev | grep bin /usr/bin /usr/bin/ntpq /usr/bin/ntpdc /usr/bin/ntptrace /usr/bin/ntpsweep /usr/bin/sntp /usr/sbin /usr/sbin/ntp-keygen /usr/sbin/ntp-wait /usr/sbin/tickadj /usr/sbin/ntpd /usr/sbin/ntptime > 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 http://www.osnews.com/story/25556/Understanding_the_bin_sbin_usr_bin_usr_sbin_Split 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 <[email protected]> NTP Public Services Project - http://support.ntp.org/ _______________________________________________ questions mailing list [email protected] http://lists.ntp.org/listinfo/questions
