204 lines
5.1 KiB
HTML
204 lines
5.1 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>/opt</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
|
REL="HOME"
|
|
TITLE="Linux Filesystem Hierarchy"
|
|
HREF="index.html"><LINK
|
|
REL="UP"
|
|
TITLE="Linux Filesystem Hierarchy"
|
|
HREF="c23.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="/mnt"
|
|
HREF="mnt.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="/proc"
|
|
HREF="proc.html"></HEAD
|
|
><BODY
|
|
CLASS="sect1"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
SUMMARY="Header navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
>Linux Filesystem Hierarchy: </TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="mnt.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
>Chapter 1. Linux Filesystem Hierarchy</TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="proc.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="sect1"
|
|
><H1
|
|
CLASS="sect1"
|
|
><A
|
|
NAME="opt"
|
|
></A
|
|
>1.13. /opt</H1
|
|
><P
|
|
> This directory is reserved for all the software and add-on packages
|
|
that are not part of the default installation. For example, StarOffice,
|
|
Kylix, Netscape Communicator and WordPerfect packages are normally
|
|
found here. To comply with the FSSTND, all third party applications
|
|
should be installed in this directory. Any package to be installed
|
|
here must locate its static files (ie. extra fonts, clipart, database
|
|
files) must locate its static files in a separate /opt/'package'
|
|
or /opt/'provider' directory tree (similar to the way in which Windows
|
|
will install new software to its own directory tree
|
|
C:\Windows\Progam Files\"Program Name"), where 'package' is a name that
|
|
describes the software package and 'provider' is the provider's LANANA
|
|
registered name.
|
|
</P
|
|
><P
|
|
> Although most distributions neglect to create the directories /opt/bin,
|
|
/opt/doc, /opt/include, /opt/info, /opt/lib, and /opt/man they are
|
|
reserved for local system administrator use. Packages may provide
|
|
"front-end" files intended to be placed in (by linking or copying)
|
|
these reserved directories by the system administrator, but must function
|
|
normally in the absence of these reserved directories. Programs to be
|
|
invoked by users are located in the directory /opt/'package'/bin. If
|
|
the package includes UNIX manual pages, they are located in /opt/'package'/man
|
|
and the same substructure as /usr/share/man must be used. Package files
|
|
that are variable must be installed in /var/opt. Host-specific
|
|
configuration files are installed in /etc/opt.
|
|
</P
|
|
><P
|
|
> Under no circumstances are other package files to exist outside
|
|
the /opt, /var/opt, and /etc/opt hierarchies except for those package
|
|
files that must reside in specific locations within the filesystem tree
|
|
in order to function properly. For example, device lock files in /var/lock
|
|
and devices in /dev. Distributions may install software in /opt, but must
|
|
not modify or delete software installed by the local system administrator
|
|
without the assent of the local system administrator.
|
|
</P
|
|
><P
|
|
> The use of /opt for add-on software is a well-established practice
|
|
in the UNIX community. The System V Application Binary Interface
|
|
[AT&T 1990], based on the System V Interface Definition (Third Edition)
|
|
and the Intel Binary Compatibility Standard v. 2 (iBCS2) provides for an
|
|
/opt structure very similar to the one defined here.
|
|
</P
|
|
><P
|
|
> Generally, all data required to support a package on a system
|
|
must be present within /opt/'package', including files intended
|
|
to be copied into /etc/opt/'package' and /var/opt/'package'
|
|
as well as reserved directories in /opt. The minor restrictions on
|
|
distributions using /opt are necessary because conflicts are possible
|
|
between distribution installed and locally installed software, especially
|
|
in the case of fixed pathnames found in some binary software.
|
|
</P
|
|
><P
|
|
> The structure of the directories below /opt/'provider' is left up to the
|
|
packager of the software, though it is recommended that packages are
|
|
installed in /opt/'provider'/'package' and follow a similar structure to
|
|
the guidelines for /opt/package. A valid reason for diverging from this
|
|
structure is for support packages which may have files installed in /opt/
|
|
'provider'/lib or /opt/'provider'/bin.
|
|
</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
SUMMARY="Footer navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="mnt.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="index.html"
|
|
ACCESSKEY="H"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="proc.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>/mnt</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="c23.html"
|
|
ACCESSKEY="U"
|
|
>Up</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>/proc</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |