spack

spack Cheatsheet #

Spack is a package manager for scientific software that helps to manage installations, dependencies, and environments.

Basic Commands #

Command/OptionExampleDescription
spack installspack install hdf5Install a package and its dependencies
spack uninstallspack uninstall hdf5Uninstall a package
spack updatespack updateUpdate Spack and its packages
spack upgradespack upgrade hdf5Upgrade a package to the latest version
spack findspack findList all installed packages

Package Management #

Command/OptionExampleDescription
spack listspack listList all available packages
spack infospack info hdf5Display information about a package
spack searchspack search hdf5Search for a package

Environment Management #

Command/OptionExampleDescription
spack env createspack env create myenvCreate a new Spack environment
spack env activatespack env activate myenvActivate a Spack environment
spack env deactivatespack env deactivateDeactivate the current Spack environment
spack env removespack env remove myenvRemove a Spack environment

Configuration #

Command/OptionExampleDescription
spack configspack configShow Spack configuration settings
spack config --listspack config --listList all Spack configuration settings
spack config --editspack config --editEdit Spack configuration settings

Repository Management #

Command/OptionExampleDescription
spack repo addspack repo add /path/to/repoAdd a new repository to Spack
spack repo listspack repo listList all Spack repositories
spack repo removespack repo remove /path/to/repoRemove a repository from Spack

Advanced Commands #

Command/OptionExampleDescription
spack concretizespack concretizeResolve and concretize dependencies
spack buildspack build hdf5Build a package from source
spack testspack test hdf5Test a package to ensure it works correctly

This cheatsheet covers essential Spack commands for managing scientific software, including installation, environment management, configuration, and more.

spack

Explore our comprehensive cheatsheets to enhance your knowledge and efficiency. Each cheatsheet provides detailed command options, examples, and descriptions to help you master various tools and technologies.