Skip to content

Spack Environments

Spack logo

Official Spack documentation
Official Spack tutorial

Before continuing below, it's probably best to complete the Spack Custom Scopes tutorial as a primer for the building blocks of Spack configuration.

A custom Spack configuration scope can be useful for installing additional personal packages that are already available from Spack, but what about if you want to collate a selection of Spack-installed packages into a single consistent environment, or manually compile additional applications and libraries that Spack doesn't provide? That is where Spack Environments come into play. Spack environments are a way to tie together Spack configuration and packages into a single file so that the same environment can be replicated in future.