Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Apr 2010 09:35:36 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Fbsd1 <fbsd1@a1poweruser.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: usage of /usr/bin
Message-ID:  <20100407093536.cab35b04.freebsd@edvax.de>
In-Reply-To: <4BBC3343.8070703@a1poweruser.com>
References:  <4BBC3343.8070703@a1poweruser.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 07 Apr 2010 15:24:51 +0800, Fbsd1 <fbsd1@a1poweruser.com> wrote:
> Why are there RELEASE base files in /usr/bin. I thought /usr was to only 
> contain binaries installed from ports or packages.

No. The /usr/local subtree (LOCAL) is for local additions (ports
and packages), while things outside this structure usually belong
to the system itself; I'm excluding mounted filesystem and other
things here for a moment.

     /usr/      contains the majority of user utilities and applications

                bin/      common utilities, programming tools, and applica-
                          tions

But:

               local/    local executables, libraries, etc.  Also used as the
                          default destination for the FreeBSD ports framework.
                          Within local/, the general layout sketched out by
                          hier for /usr should be used.  Exceptions are the
                          man directory (directly under local/ rather than
                          under local/share/), ports documentation (in
                          share/doc/<port>/), and /usr/local/etc (mimics
                          /etc).

Because we are on FreeBSD, there's excellent documentation
that shows how and why the system tree has a well intended
layout. :-)

The command

	% man hier

will explain everything in detail.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100407093536.cab35b04.freebsd>