# 使用 Homebrew, apk, dnf, Nix, pacman, zypper, winget, scoop, apt 安装 foundry

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

## 安装

```sh
sudo av install brew:foundry
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install foundry
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add foundry
```

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

- dnf (92%):

```sh
sudo dnf install foundry
```

  证据: Fedora Rawhide package metadata: foundry from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#foundry
```

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

- pacman (92%):

```sh
sudo pacman -S foundry
```

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

- zypper (92%):

```sh
sudo zypper install foundry
```

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

- Ubuntu apt (92%):

```sh
sudo apt install forge-doc
```

  证据: Ubuntu 24.04 LTS package indexes: forge-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

### Windows

- winget (92%):

```sh
winget install --id Microsoft.FoundryLocal -e
```

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

- Scoop (92%):

```sh
scoop install main/chisel
```

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

## 软件包事实

- **软件包键:** brew:foundry
- **软件包管理器:** Homebrew
- **版本:** 1.7.1
- **来源摘要:** Blazing fast, portable and modular toolkit for Ethereum application development
- **主页:** <https://github.com/foundry-rs/foundry>
- **仓库:** <https://github.com/foundry-rs/foundry>
- **最后更新:** 2026-05-08T09:43:00Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- anvil (别名)
- cast (别名)
- chisel (别名)
- forge (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Foundry is a Rust-written toolkit for Ethereum application development. The package ships the `forge`, `cast`, `anvil`, and `chisel` commands for building and testing Solidity contracts, interacting with EVM chains, running a local node, and using a Solidity REPL.

### 项目历史

The `foundry-rs/foundry` repository was created in 2021. Its README presents Foundry as a fast, portable, modular Ethereum development toolkit and splits the suite into Forge, Cast, Anvil, and Chisel.

The official docs now organize Foundry around installation with `foundryup`, project setup, dependencies, Forge workflows, Cast chain interaction, Anvil local node usage, Chisel sessions, and `foundry.toml` configuration.

### 采用历史

Foundry became a common smart-contract development package because it moved the Ethereum workflow into fast local CLIs: Solidity tests through Forge, forked-chain testing through Anvil, RPC and wallet tasks through Cast, and repeatable installs through `foundryup`, GitHub Releases, Docker, Homebrew, and source builds.

### 使用方式

The README's basic workflow is `forge init`, `forge build`, and `forge test`; common operational workflows include `cast block-number`, `cast balance`, and `anvil --fork-url` for a forked local chain. Configuration is kept in `foundry.toml` with profiles and environment-variable overrides.

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

Foundry is important in package history because it packaged a complete blockchain developer workstation as native CLIs rather than a JavaScript-only toolchain. It also made release management and version switching part of the package story through `foundryup`, nightly builds, binary attestations, Docker images, and Cargo builds.

### 时间线

- 2021: The public `foundry-rs/foundry` repository was created.
- 2026: GitHub tags included stable v1.7.x releases and GitHub Releases continued to publish nightly builds.
- 2026: The official installation docs described `foundryup` as the installer and version manager and listed precompiled binaries, Docker, and source builds as alternatives.

### Related projects

- Foundry is related to Ethereum, Solidity, EVM-compatible chains, GitHub artifact attestations, Docker images, Cargo/Rust builds, and the earlier smart-contract tooling ecosystem that it complements or replaces in many projects.

### 来源

- <https://api.github.com/repos/foundry-rs/foundry>
- <https://api.github.com/repos/foundry-rs/foundry/releases>
- <https://api.github.com/repos/foundry-rs/foundry/tags>
- <https://getfoundry.sh/>
- <https://getfoundry.sh/config/>
- <https://getfoundry.sh/forge/>
- <https://getfoundry.sh/introduction/installation>
- <https://github.com/foundry-rs/foundry>
- <https://raw.githubusercontent.com/foundry-rs/foundry/master/README.md>


## 安全说明

没有找到 foundry 的匹配本地密钥处理 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: foundry.toml, ~/.foundry/foundry.toml
## 其他软件包管理器记录

- Nix - foundry: normalized package name match | nixpkgs package indexes: pkgs/by-name/fo/foundry/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - foundry - 1.1.1-r0: normalized package name match | Alpine Linux edge package indexes: foundry from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Companion command-line tool for IDE features of GNOME Builder | https://gitlab.gnome.org/GNOME/foundry
- apk - foundry-bash-completion - 1.1.1-r0: normalized package name match | Alpine Linux edge package indexes: foundry-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for foundry | https://gitlab.gnome.org/GNOME/foundry
- apk - foundry-dev - 1.1.1-r0: normalized package name match | Alpine Linux edge package indexes: foundry-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Companion command-line tool for IDE features of GNOME Builder (development files) | https://gitlab.gnome.org/GNOME/foundry
- apk - foundry-doc - 1.1.1-r0: normalized package name match | Alpine Linux edge package indexes: foundry-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Companion command-line tool for IDE features of GNOME Builder (documentation) | https://gitlab.gnome.org/GNOME/foundry
- apk - foundry-lang - 1.1.1-r0: normalized package name match | Alpine Linux edge package indexes: foundry-lang from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Languages for package foundry | https://gitlab.gnome.org/GNOME/foundry
- apk - foundry-libs - 1.1.1-r0: normalized package name match | Alpine Linux edge package indexes: foundry-libs from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Companion command-line tool for IDE features of GNOME Builder (libraries) | https://gitlab.gnome.org/GNOME/foundry
- dnf - foundry - 1.2~alpha-2.fc45: normalized package name match | Fedora Rawhide package metadata: foundry from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | IDE library and command-line companion tool | https://gitlab.gnome.org/GNOME/foundry
- dnf - libfoundry - 1.2~alpha-2.fc45: normalized package name match | Fedora Rawhide package metadata: libfoundry from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | IDE library and command-line companion tool (shared library) | https://gitlab.gnome.org/GNOME/foundry
- dnf - libfoundry-devel - 1.2~alpha-2.fc45: normalized package name match | Fedora Rawhide package metadata: libfoundry-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | IDE library and command-line companion tool (development files) | https://gitlab.gnome.org/GNOME/foundry
- dnf - libfoundry-gtk - 1.2~alpha-2.fc45: normalized package name match | Fedora Rawhide package metadata: libfoundry-gtk from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | IDE library and command-line companion tool (GTK integration) | https://gitlab.gnome.org/GNOME/foundry
- dnf - libfoundry-gtk-devel - 1.2~alpha-2.fc45: normalized package name match | Fedora Rawhide package metadata: libfoundry-gtk-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | IDE library and command-line companion tool (development files) | https://gitlab.gnome.org/GNOME/foundry
- pacman - foundry - 1.1.1-1: normalized package name match | Arch Linux sync databases: foundry from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Aims to extract much of what makes GNOME Builder an IDE into a library and companion command-line tool | https://gitlab.gnome.org/GNOME/foundry
- zypper - foundry - 1.1.1-1.4: normalized package name match | openSUSE Tumbleweed package metadata: foundry from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | IDE library and command-line companion tool | https://gitlab.gnome.org/GNOME/foundry
- zypper - foundry-devel - 1.1.1-1.4: normalized package name match | openSUSE Tumbleweed package metadata: foundry-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | IDE library and command-line companion tool (development files) | https://gitlab.gnome.org/GNOME/foundry
- zypper - libfoundry-1-1 - 1.1.1-1.4: normalized package name match | openSUSE Tumbleweed package metadata: libfoundry-1-1 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | IDE library and command-line companion tool | https://gitlab.gnome.org/GNOME/foundry


## Combined YAML source

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