# 使用 Homebrew, zypper 安装 spack

查看 spack 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:spack
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install spack
```

  证据: local Homebrew formula metadata

### Linux

- zypper (92%):

```sh
sudo zypper install spack
```

  证据: openSUSE Tumbleweed package metadata: spack from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:spack
- **软件包管理器:** Homebrew
- **版本:** 1.2.2
- **来源摘要:** Package manager that builds multiple versions and configurations of software
- **主页:** <https://spack.io>
- **仓库:** <https://github.com/spack/spack>
- **最后更新:** 2026-07-20T10:04:22Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- sbang (别名)
- spack (别名)
- spack-python (别名)
- spack-tmpconfig (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.2.2
## 项目历史与用法

Spack is a source-based, multi-platform package manager best known in high-performance and scientific computing. Its niche is letting users install many versions, compiler builds, variants, and dependency graphs side by side without overwriting an existing installation.

### 项目历史

The public GitHub repository was created in 2014. The project describes itself as a package manager for Linux, macOS, Windows, and supercomputers, with package recipes written in Python and a spec syntax for expressing versions, compilers, variants, and dependency choices.

### 采用历史

Spack grew around environments where system package managers and language package managers were too rigid for research software stacks. Its official README and documentation emphasize stable releases for multi-user site deployments, a community package repository, and communication channels for package authors, site administrators, and users.

### 使用方式

Typical use starts by cloning Spack, sourcing its shell setup script, finding compilers, and running commands such as `spack list`, `spack spec`, and `spack install`. Configuration is YAML-based, with user configuration under `~/.spack/` and project environments described by `spack.yaml`.

### 为什么软件包爱好者会关心

Package nerds care about Spack because it treats the dependency graph as something to solve, reproduce, and vary, not just a flat list of packages. It made HPC packaging culture more explicit: variants, compiler ABI choices, MPI providers, build caches, environment manifests, and site policy all become first-class package-manager concerns.

### 时间线

- 2014: Public GitHub repository created.
- 2020s: Documentation emphasizes stable releases, environment manifests, build caches, and large multi-user deployments.

### Related projects

- Spack overlaps culturally with Homebrew, MacPorts, Nix, EasyBuild, Conda, and environment modules, but is especially oriented toward source builds and combinatorial scientific software stacks.

### 来源

- <https://api.github.com/repos/spack/spack>
- <https://github.com/spack/spack>
- <https://spack.readthedocs.io/en/latest/configuration.html>
- <https://spack.readthedocs.io/en/latest/getting_started.html>
- input.source_facts.package-manager


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.spack/config.yaml, ~/.spack/packages.yaml, spack.yaml
## 其他软件包管理器记录

- zypper - spack - 0.23.1-2.4: normalized package name match | openSUSE Tumbleweed package metadata: spack from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Package manager for HPC systems | https://spack.io
- zypper - spack-build-dependencies - 0.23.1-2.4: normalized package name match | openSUSE Tumbleweed package metadata: spack-build-dependencies from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Spack Build Dependencies | https://spack.io
- zypper - spack-info - 0.23.1-2.6: normalized package name match | openSUSE Tumbleweed package metadata: spack-info from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Info Page for Spack - Package manager for HPC systems | https://spack.io
- zypper - spack-man - 0.23.1-2.6: normalized package name match | openSUSE Tumbleweed package metadata: spack-man from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Man Page for Spack - Package manager for HPC systems | https://spack.io
- zypper - spack-recipes - 0.23.1-2.4: normalized package name match | openSUSE Tumbleweed package metadata: spack-recipes from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Spack built-in package recipes | https://spack.io


## Combined YAML source

View the package source record on GitHub. [combined/spack.yml](https://github.com/mxcl/pkgdb/blob/main/combined/spack.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
