# 使用 Homebrew 安装 solana

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

## 安装

```sh
sudo av install brew:solana
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install solana
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:solana
- **软件包管理器:** Homebrew
- **版本:** 4.1.2
- **来源摘要:** Web-Scale Blockchain for decentralized apps and marketplaces
- **主页:** <https://www.anza.xyz/>
- **仓库:** <https://github.com/anza-xyz/agave>
- **最后更新:** 2026-07-13T16:52:22Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- agave-ledger-tool (别名)
- agave-validator (别名)
- agave-watchtower (别名)
- solana (别名)
- solana-keygen (别名)
- solana-stake-accounts (别名)
- solana-test-validator (别名)
- solana-tokens (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

The Homebrew solana package installs the Solana command-line and validator toolchain, now sourced from Anza's Agave implementation, for developers and operators working with Solana clusters.

### 项目历史

The original solana-labs/solana repository was created in February 2018 and is now archived. Its README explicitly redirects readers to Agave, the Solana validator implementation from Anza.

The Anza Agave repository was created in January 2024 as a fork of solana-labs/solana. Its README documents building the Rust validator implementation, running local testnets, accessing devnet, benchmarking, and following the release process.

The package continues to expose familiar Solana command names such as solana, solana-keygen, solana-test-validator, and validator/ledger tools, even as the upstream implementation source moved to Agave.

### 采用历史

The CLI became a central interface for Solana because the official Anza CLI documentation says it is the first place the Anza core team deploys new functionality and provides direct, flexible, secure account access.

Official installation docs support multiple routes: the Solana install tool, prebuilt binaries, source builds, and Homebrew. The Homebrew section notes that the formula is updated after each solana release, though it may lag the desired version.

### 使用方式

Developers use the CLI to create and manage wallets, choose clusters, transfer tokens, deploy programs, run local test validators, and inspect or operate validator-related state.

Package users commonly care about the config and keypair paths because the CLI reads ~/.config/solana/cli/config.yml for cluster and client defaults and commonly uses ~/.config/solana/id.json as a filesystem keypair.

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

For package managers, solana is a large Rust toolchain package with many operational binaries, release-channel expectations, and tight coupling to upstream network compatibility. It is not just a single wallet CLI.

The Solana-to-Agave upstream transition is also package-nerd-interesting: downstream formula names, executable names, docs, and user config paths preserve the Solana CLI identity while the maintained source repository and validator implementation live under Anza.

### 时间线

- 2018-02: solana-labs/solana repository is created.
- 2024-01: anza-xyz/agave repository is created as a fork of solana-labs/solana.
- 2025: solana-labs/solana README marks the repository as a public archive and points to Agave.
- 2026: Anza docs continue to document the Solana CLI install flow, including Homebrew.

### Related projects

- Agave: Anza's maintained Solana validator implementation and current source for the Homebrew package.
- solana-labs/solana: archived predecessor repository.
- Solana CLI Tool Suite: commands used for wallets, clusters, staking, programs, and local validators.
- Anchor and Solana Program Library: neighboring developer tooling commonly used with Solana CLI workflows.

### 来源

- current_curation.config-file-location
- current_curation.credentials-file-location
- <https://api.github.com/repos/anza-xyz/agave>
- <https://docs.anza.xyz/cli/>
- <https://docs.anza.xyz/cli/install>
- <https://raw.githubusercontent.com/anza-xyz/agave/master/README.md>
- <https://raw.githubusercontent.com/solana-labs/solana/master/README.md>
- <https://solana.com/docs/intro/installation>
- source_facts.executables
- source_facts.package-manager


## 安全说明

没有找到 solana 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## 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: ~/.config/solana/cli/config.yml

## Credential files

- Unix: ~/.config/solana/id.json

## Combined YAML source

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


## 来源

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