# 使用 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/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## 软件包事实

- **软件包键:** brew:spack
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/spack>
- **版本:** 1.2.1
- **来源摘要:** Package manager that builds multiple versions and configurations of software
- **主页:** <https://spack.io>
- **仓库:** <https://github.com/spack/spack>
- **上游文档:** <https://spack.io/>
- **许可证:** Apache-2.0 OR MIT
- **源码归档:** <https://github.com/spack/spack/archive/refs/tags/v1.2.1.tar.gz>
- **最后更新:** 2026-07-07T20:34:29Z
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

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

## macOS 提供的库

- python

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.2.1
- 管理器更新时间: 2026-07-07
- 本地数据: OK
- 上游仓库: https://github.com/spack/spack
- 检测到的最新版本: v1.2.1 (当前)
## 项目历史与用法

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
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** spack
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

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


## 相关链接

- [Package publisher tools](https://www.automicvault.com/zh-hans/pkg/package-publishers/) - Belongs to a package publishing or registry command family.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [akku](https://www.automicvault.com/zh-hans/pkg/brew/akku/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager.
- [bower](https://www.automicvault.com/zh-hans/pkg/brew/bower/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager.
- [cabal-install](https://www.automicvault.com/zh-hans/pkg/brew/cabal-install/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager.
- [clib](https://www.automicvault.com/zh-hans/pkg/brew/clib/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager.
- [composer](https://www.automicvault.com/zh-hans/pkg/brew/composer/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager.
- [conan](https://www.automicvault.com/zh-hans/pkg/brew/conan/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager.
- [conda-lock](https://www.automicvault.com/zh-hans/pkg/brew/conda-lock/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager.
- [corepack](https://www.automicvault.com/zh-hans/pkg/brew/corepack/) - Shares av.db curated category or tags: cli, developer-tools, package-management, package-manager.
- [dub](https://www.automicvault.com/zh-hans/pkg/brew/dub/) - Local metadata places this package in an adjacent workflow. Shared terms: build, build-tools, cli, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/spack.yml](https://github.com/automic-vault/db/blob/main/combined/spack.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
