spack
- Version:
0.17.2
- Category:
tools
- Cluster:
Loki
Description
Spack is a package manager for supercomputers, Linux, and macOS. It makes installing scientific software easy. With Spack, you can build a package with multiple versions, configurations, platforms, and compilers, and all of these builds can coexist on the same machine.
Documentation
usage: spack [-hkV] [--color {always,never,auto}] COMMAND ...
A flexible package manager that supports multiple versions,
configurations, platforms, and compilers.
These are common spack commands:
query packages:
list list and search available packages
info get detailed information on a particular package
find list and search installed packages
build packages:
install build and install packages
uninstall remove installed packages
gc remove specs that are now no longer needed
spec show what would be installed, given a spec
configuration:
external manage external packages in Spack configuration
environments:
env manage virtual environments
view project packages to a compact naming scheme on the filesystem.
create packages:
create create a new package file
edit open package files in $EDITOR
system:
arch print architecture information about this machine
audit audit configuration files, packages, etc.
compilers list available compilers
user environment:
load add package to the user environment
module generate/manage module files
unload remove package from the user environment
optional arguments:
--color {always,never,auto}
when to colorize output (default: auto)
-V, --version show version number and exit
-h, --help show this help message and exit
-k, --insecure do not check ssl certificates when downloading
more help:
spack help --all list all commands and options
spack help <command> help on a specific command
spack help --spec help on the package specification syntax
spack docs open https://spack.rtfd.io/ in a browser
Examples/Usage
List available modules:
$ module avail spack
Load the spack module:
$ module load spack/0.17.2
Check the loaded modules:
$ module list
Unload the spack module:
$ module unload spack/0.17.2
list and search available packages:
$ spack --list
manage virtual environments:
$ spack --env
Installation
Source code is obtained from Spack