2.3. The Software Collection Root Directory


You can change the location of the root directory by setting the %_scl_prefix macro in the spec file, as in the following example:
%global _scl_prefix /opt/provider
where provider is the provider (vendor) name registered, where applicable, 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/prefix-application-version/

Note

You must define the _scl_prefix macro above the %scl_package macro in the spec file.
For more information on the Filesystem Hierarchy Standard, see http://www.pathname.com/fhs/.
For more information on the Linux Assigned Names and Numbers Authority, see http://www.lanana.org/.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.