On Tue, 06 Mar 2007, in the Usenet newsgroup comp.os.linux.networking, in
article <VneHh.18428$(E-Mail Removed)>, Timothy Murphy wrote:
>Michael Heiming wrote:
>>> i copied this file to /opt then i unziped that file and extracted
>>> that file using the following comands
>>
>> Don't put source there, use your own $HOME or /usr/local/src or
>> alike.
>
>Why not /opt , as a matter of interest?
>What exactly is /opt for?
http://www.pathname.com/fhs/
---------
/opt : Add-on application software packages
Purpose
/opt is reserved for the installation of add-on application software packages.
A package to be installed in /opt must locate its static files in a separate
/opt/<package> or /opt/<provider> directory tree, where <package> is a name
that describes the software package and <provider> is the provider's LANANA
registered name.
---------
>[I might say I would have saved it in /usr/local , as you suggest.]
Interestingly, the FHS doesn't require/recommend a /usr/local/src/ but
it has been installed by many distributions I've used over the years, and
I would have created such hierarchy on any install lacking it.
[compton ~]$ grep builder /etc/passwd
builder:x:65523:65523:Software Building account:/usr/local/src:/bin/bash
[compton ~]$ grep builder /etc/group
builder:*:65523:builder
Those are not distribution or UNIX standard accounts. They are on our systems
because a software auditor from corporate recommended them. Neither user or
group accounts own ANY other files/directories. The user has permissions of
'others' which is to say they can write to /tmp/ and /usr/tmp (other than
their home directory) and that is all.
Tarballs are unpacked in /usr/local/src/ then audited and built there. If the
software does not _require_ root permission to _run_ (for example, it's not
opening a network socket), then the software is test run from the source
directory by the 'builder' user, so that if something goes horribly wrong,
'builder' is the only user effected. Only when things are correct is root
needed to _install_ the software so that regular users can then run it.
We've been using this method WITHOUT PROBLEMS for over twenty years - yes,
that predates Linux.
Old guy