1.4. The File System Hierarchy

The root directory of Software Collections is normally located in the /opt/ directory to avoid possible conflicts between Software Collections and the base system installation. The use of the /opt/ directory is recommended by the Filesystem Hierarchy Standard (FHS).
You can change the location of the root directory by setting the %_scl_prefix macro in the spec file, as in the following example:
%_scl_prefix /opt/provider
where provider is the provider (vendor) name registered with the Linux Foundation and the subordinated Linux Assigned Names and Numbers Authority (LANANA), in conformance with the Filesystem Hierarchy Standard.
Each organization or project that builds and distributes Software Collections should use its own provider name, which conforms to the Filesystem Hierarchy Standard (FHS) and avoids possible conflicts between Software Collections and the base system installation.
You are advised to make the file system hierarchy conform to the following layout:
/opt/provider/application-version/
For more information on the Filesystem Hierarchy Standard, refer to http://www.pathname.com/fhs/.
For more information on the Linux Assigned Names and Numbers Authority, refer to http://www.lanana.org/.
Below is an example of the file system hierarchy layout with two Software Collections, Software Collection 1 and Software Collection 2:
opt
`-- provider
    |-- Software Collection 1
    |   |-- Software Collection root directory
    |   `-- Software Collection scriptlets
    |
    `-- Software Collection 2
        |-- Software Collection root directory
        `-- Software Collection scriptlets
As you can see in the example above, each of the Software Collections directories contains two subdirectories: the Software Collection root directory and a directory containing the Software Collection scriptlets. For more information on the Software Collection scriptlets, refer to Section 1.5, “Software Collection Scriptlets”.