# 使用 Homebrew, MacPorts, Nix, apk, pacman, scoop, winget 安装 ethereum

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

## 安装

```sh
sudo av install brew:ethereum
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ethereum
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install clef
```

  证据: MacPorts ports tree: security/clef/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#era
```

  证据: nixpkgs package indexes: pkgs/by-name/er/era/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- apk (92%):

```sh
sudo apk add geth
```

  证据: Alpine Linux edge package indexes: geth from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- pacman (92%):

```sh
sudo pacman -S go-ethereum
```

  证据: Arch Linux sync databases: go-ethereum from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Scoop (92%):

```sh
scoop install main/geth
```

  证据: Scoop official bucket manifest trees: bucket/geth.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Ethereum.geth -e
```

  证据: Windows Package Manager source index: Ethereum.geth from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:ethereum
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ethereum>
- **版本:** 1.17.4
- **来源摘要:** Official Go implementation of the Ethereum protocol
- **主页:** <https://geth.ethereum.org/>
- **仓库:** <https://github.com/ethereum/go-ethereum>
- **上游文档:** <https://geth.ethereum.org/docs>
- **许可证:** LGPL-3.0-or-later
- **源码归档:** <https://github.com/ethereum/go-ethereum/archive/refs/tags/v1.17.4.tar.gz>
- **最后更新:** 2026-06-22T10:25:53Z
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- abidump (cli)
- abigen (cli)
- blsync (cli)
- clef (cli)
- devp2p (cli)
- era (cli)
- ethkey (cli)
- evm (cli)
- fetchpayload (cli)
- geth (cli)
- rlpdump (cli)
- workload (cli)
- abidump (别名)
- abigen (别名)
- blsync (别名)
- clef (别名)
- devp2p (别名)
- era (别名)
- ethkey (别名)
- evm (别名)
- fetchpayload (别名)
- geth (别名)
- rlpdump (别名)
- workload (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

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

Geth, the Go implementation of Ethereum, is one of the original Ethereum clients and remains a central execution client for running Ethereum infrastructure. It packages the protocol implementation, node software, RPC server, JavaScript console, account tooling, and developer utilities into a command-line distribution familiar to node operators and package-manager users.

### 项目历史

Geth grew out of Ethereum's early multi-client implementation strategy, where Go, C++, Python, and other clients helped launch and harden the network. The Ethereum Foundation's Frontier launch material in 2015 described the first live Ethereum milestone as a technical-user release where users voluntarily downloaded client software and generated the genesis block to join the network.

During the Homestead era in 2016, the Go client was called out as the Geth release line for Ethereum protocol and networking changes. Later Geth releases continued to track major protocol and storage needs; for example, Geth 1.13 introduced a new state database model with proper pruning after years of work on state storage growth.

### 采用历史

Official Geth documentation describes it as one of the original and most popular Ethereum clients, and the project homepage says it has been a core part of Ethereum since the beginning. Its adoption followed from being an official, production-grade execution client for Ethereum mainnet, testnets, private networks, and developer environments.

After Ethereum moved from proof of work to proof of stake, Geth's operational role changed from a standalone full-node client to the execution half of a two-client Ethereum node. Operators now pair it with a consensus client, but Geth still handles transaction gossip, state management, EVM execution, and user-facing RPC access.

### 使用方式

Geth is primarily controlled with the `geth` command. Users install it from packages, containers, or source, then use it to create accounts, sync chain data, join networks, expose JSON-RPC APIs, run the console, import or export chain data, and connect to consensus clients.

For application developers, Geth is also a local Ethereum interface: its RPC methods let tools and libraries query chain state, submit transactions, deploy smart contracts, and inspect execution. The Homebrew package also ships related utilities such as Clef, abigen, evm, devp2p, and rlpdump.

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

For package nerds, Geth is the canonical example of a blockchain node package whose installed binary is operational infrastructure rather than a simple CLI helper. Its formula matters because a packaged Geth must track protocol releases quickly, expose companion tools, and fit into local service, data-directory, and key-management conventions.

Geth also shows how packaging follows protocol architecture: the same executable that once ran a full Ethereum node now needs a consensus client and authenticated Engine API setup for production use, so install notes and version freshness have real network-compatibility consequences.

### 时间线

- 2015: Ethereum Frontier launched as the first live Ethereum milestone for technical users and developers.
- 2016: Homestead used the Go Ethereum 1.3.x Geth release line for protocol and networking changes.
- 2022: Ethereum's proof-of-stake transition made Geth an execution client that must be paired with a consensus client for normal node operation.
- 2023: Geth 1.13 shipped a new state database model with proper pruning support.

### Related projects

- Consensus clients such as Lighthouse, Nimbus, Prysm, Teku, and Lodestar pair with Geth to form a complete proof-of-stake Ethereum node.
- Other Ethereum execution clients occupy the same client-diversity space, while Geth's bundled tools such as Clef and abigen support account signing and contract-binding workflows.

### 来源

- <https://geth.ethereum.org/>
- <https://geth.ethereum.org/docs>
- <https://geth.ethereum.org/docs/getting-started>
- <https://geth.ethereum.org/docs/fundamentals/command-line-options>
- <https://geth.ethereum.org/docs/fundamentals/node-architecture>
- <https://geth.ethereum.org/docs/getting-started/consensus-clients>
- <https://blog.ethereum.org/2015/07/22/frontier-is-coming-what-to-expect-and-how-to-prepare>
- <https://blog.ethereum.org/2016/02/29/homestead-release>
- <https://blog.ethereum.org/2023/09/12/geth-v1-13-0>


## 安全说明

没有找到 ethereum 的匹配本地密钥处理 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.


## Credential files

- Linux: ~/.ethereum/keystore
- macOS: ~/Library/Ethereum/keystore
- Windows: %LOCALAPPDATA%\Ethereum\keystore
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ethereum
- **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

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

- MacPorts - clef: installed executable or alias match | MacPorts ports tree: security/clef/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Nix - era: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/er/era/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - geth - 1.17.0-r3: installed executable or alias match | Alpine Linux edge package indexes: geth from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Official Go implementation of the Ethereum protocol | https://geth.ethereum.org/
- apk - geth-tools - 1.17.0-r3: installed executable or alias match | Alpine Linux edge package indexes: geth-tools from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Official Go implementation of the Ethereum protocol (extra tools: abigen, clef, evm, rlpdump) | https://geth.ethereum.org/
- pacman - go-ethereum - 1.17.1-1: installed executable or alias match | Arch Linux sync databases: go-ethereum from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Official Go implementation of the Ethereum protocol | https://geth.ethereum.org/
- Scoop - main/geth: installed executable or alias match | Scoop official bucket manifest trees: bucket/geth.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Ethereum.geth: installed executable or alias match | Windows Package Manager source index: Ethereum.geth from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [Cloud CLI packages](https://www.automicvault.com/zh-hans/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/zh-hans/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [firefly](https://www.automicvault.com/zh-hans/pkg/brew/firefly/) - Shares av.db curated category or tags: blockchain, cli, cloud-infrastructure.
- [chaoskube](https://www.automicvault.com/zh-hans/pkg/brew/chaoskube/) - Shares av.db curated category or tags: cli, cloud-infrastructure, go.
- [crane](https://www.automicvault.com/zh-hans/pkg/brew/crane/) - Shares av.db curated category or tags: cli, cloud-infrastructure, go.
- [gwctl](https://www.automicvault.com/zh-hans/pkg/brew/gwctl/) - Shares av.db curated category or tags: cli, cloud-infrastructure, go.
- [harbor-cli](https://www.automicvault.com/zh-hans/pkg/brew/harbor-cli/) - Shares av.db curated category or tags: cli, cloud-infrastructure, go.
- [havener](https://www.automicvault.com/zh-hans/pkg/brew/havener/) - Shares av.db curated category or tags: cli, cloud-infrastructure, go.
- [ko](https://www.automicvault.com/zh-hans/pkg/brew/ko/) - Shares av.db curated category or tags: cli, cloud-infrastructure, go.
- [qshell](https://www.automicvault.com/zh-hans/pkg/brew/qshell/) - Shares av.db curated category or tags: cli, cloud-infrastructure, go.
- [s5cmd](https://www.automicvault.com/zh-hans/pkg/brew/s5cmd/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, cloud, cloud-infrastructure, execution, go.
- [neonctl](https://www.automicvault.com/zh-hans/pkg/npm/neonctl/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, client, cloud, cloud-infrastructure, infrastructure.

## Combined YAML source

View the package source record on GitHub. [combined/ethereum.yml](https://github.com/automic-vault/db/blob/main/combined/ethereum.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
