# 使用 Homebrew, apk, MacPorts, Nix, zypper 安装 asdf

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

## 安装

```sh
sudo av install brew:asdf
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install asdf
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install asdf
```

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

### Linux

- apk (92%):

```sh
sudo apk add asdf
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#asdf
```

  证据: nixpkgs package indexes: asdf from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- zypper (92%):

```sh
sudo zypper install asdf
```

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

## 软件包事实

- **软件包键:** brew:asdf
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/asdf>
- **版本:** 0.20.0
- **来源摘要:** Extendable version manager with support for Ruby, Node.js, Erlang & more
- **主页:** <https://asdf-vm.com/>
- **仓库:** <https://github.com/asdf-vm/asdf>
- **上游文档:** <https://asdf-vm.com/guide/getting-started.html>
- **许可证:** MIT
- **源码归档:** <https://github.com/asdf-vm/asdf/archive/refs/tags/v0.20.0.tar.gz>
- **最后更新:** 2026-07-07T15:31:48Z
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- asdf (cli)
- asdf (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

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

asdf is an extensible multi-runtime version manager built around one CLI, one per-project `.tool-versions` file, and a plugin system for languages and tools. It became a package-manager favorite because it replaces a pile of language-specific version managers with a single shim and plugin workflow.

### 项目历史

The repository was created in 2014 and the README frames asdf as a response to the proliferation of tools such as gvm, nvm, rbenv, and pyenv. Its bundled 'Ballad of asdf' says the author wrote one more version manager after installing many language-specific managers and learning many command sets.

The first tagged version, v0.1.0, was annotated in July 2016. From there asdf grew as a shell-based version manager with plugins, shims, and a shared `.tool-versions` file. Release metadata shows v0.9.0 in 2021 and a rapid 0.10+ to 0.19 series through 2026.

### 采用历史

asdf's adoption comes from the plugin model. The official README advertises one CLI for multiple languages, consistent commands, one global config, per-project `.tool-versions`, support for legacy files such as `.node-version`, `.nvmrc`, and `.ruby-version`, and automatic switching as users move between directories.

The input package facts list Alpine, Homebrew, MacPorts, Nix, and openSUSE packaging. In practice, many users also install it directly from Git, then use package-managed plugins for runtimes through asdf's own plugin index and community plugins.

### 使用方式

A typical workflow is to install asdf, add a plugin such as Node.js or Ruby, install one or more versions, and set versions globally or in a project. The `.tool-versions` file records tool names and versions, while `~/.asdfrc` holds user-specific settings such as legacy version file behavior, plugin repository sync timing, and concurrency.

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

asdf is significant because it turns language runtime installation into a plugin packaging problem. It competes with language-native version managers, distro packages, and newer tools, but its stable `.tool-versions` convention became a common project-level contract across mixed-language repositories.

### 时间线

- 2014: GitHub repository created.
- 2016: v0.1.0 annotated as the first tagged version.
- 2021: v0.9.0 release published.
- 2025: v0.16.0 release published.
- 2026: v0.19.0 release published.

### Related projects

- gvm, nvm, rbenv, and pyenv are named by the README as comparable language-specific tools.
- asdf-plugins is the official plugin short-name index.
- asdf-plugin-template and asdf-vm/actions support plugin creation and CI workflows.

### 来源

- <https://api.github.com/repos/asdf-vm/asdf/git/tags/ae2eb8b75d07ec787e9e603cc0e89affb9c57c6f>
- <https://asdf-vm.com/>
- <https://asdf-vm.com/manage/configuration.html>
- <https://github.com/asdf-vm/asdf>
- 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: .tool-versions, ~/.asdfrc
## 源数据库详情

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

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

- Nix - asdf: normalized package name match | nixpkgs package indexes: asdf from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- apk - asdf - 0.18.0-r10: normalized package name match | Alpine Linux edge package indexes: asdf from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | The Multiple Runtime Version Manager | https://asdf-vm.com/
- apk - asdf-doc - 0.18.0-r10: normalized package name match | Alpine Linux edge package indexes: asdf-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | The Multiple Runtime Version Manager (documentation) | https://asdf-vm.com/
- zypper - asdf - 0.18.1-1.3: normalized package name match | openSUSE Tumbleweed package metadata: asdf from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Extendable version manager | https://github.com/asdf-vm/asdf
- MacPorts - asdf: normalized package name match | MacPorts ports tree: sysutils/asdf/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [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.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [anyenv](https://www.automicvault.com/zh-hans/pkg/brew/anyenv/) - Shares av.db curated category or tags: cli, developer-tools, version-manager.
- [aqua](https://www.automicvault.com/zh-hans/pkg/brew/aqua/) - Shares av.db curated category or tags: cli, developer-tools, version-manager.
- [bob](https://www.automicvault.com/zh-hans/pkg/brew/bob/) - Shares av.db curated category or tags: cli, developer-tools, version-manager.
- [fnm](https://www.automicvault.com/zh-hans/pkg/brew/fnm/) - Shares av.db curated category or tags: cli, developer-tools, version-manager.
- [frum](https://www.automicvault.com/zh-hans/pkg/brew/frum/) - Shares av.db curated category or tags: cli, developer-tools, version-manager.
- [fvm](https://www.automicvault.com/zh-hans/pkg/brew/fvm/) - Shares av.db curated category or tags: cli, developer-tools, version-manager.
- [ghcup](https://www.automicvault.com/zh-hans/pkg/brew/ghcup/) - Shares av.db curated category or tags: cli, developer-tools, version-manager.
- [goenv](https://www.automicvault.com/zh-hans/pkg/brew/goenv/) - Shares av.db curated category or tags: cli, developer-tools, version-manager.
- [vfox](https://www.automicvault.com/zh-hans/pkg/brew/vfox/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, manager, more.
- [nave](https://www.automicvault.com/zh-hans/pkg/brew/nave/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, manager, node.

## Combined YAML source

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