# 使用 Homebrew, chocolatey, MacPorts, Nix, pacman, scoop 安装 fvm

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

## 安装

```sh
sudo av install brew:fvm
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install fvm
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fvm
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#fvm
```

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

- pacman (92%):

```sh
sudo pacman -S fvm
```

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

### Windows

- Chocolatey (92%):

```sh
choco install fvm
```

  证据: Chocolatey community package catalog: fvm from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','fusioninventory-agent'

- Scoop (92%):

```sh
scoop install extras/fvm
```

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

## 软件包事实

- **软件包键:** brew:fvm
- **软件包管理器:** Homebrew
- **版本:** 4.1.2
- **来源摘要:** Manage Flutter SDK versions per project
- **主页:** <https://fvm.app>
- **仓库:** <https://github.com/leoafarias/fvm>
- **最后更新:** 2026-06-25T18:45:55Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- fvm (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

FVM is a Dart CLI for managing Flutter SDK versions per project. It fills the same role in Flutter workflows that tools such as rbenv, pyenv, nvm, or asdf fill for other language runtimes: pin a toolchain in project metadata and route developer commands through the selected SDK.

### 项目历史

The public GitHub repository was created in February 2019, and the package appeared on pub.dev in October 2019. The project describes itself as Flutter Version Management and documents the problem it addresses as the need to use multiple Flutter SDKs, avoid slow channel switching, and keep team environments consistent.

By the 3.x series, FVM had moved its project configuration to a `.fvmrc` file, while keeping `.fvm/fvm_config.json` as a deprecated compatibility file. Later 4.x releases added stronger support for custom or forked Flutter SDK repositories, Melos integration, standalone executables, release automation, and more efficient git cache handling.

### 采用历史

FVM is distributed as a Dart package and as prebuilt or package-manager installs. The upstream README notes release automation to pub.dev, GitHub binaries, Homebrew, Chocolatey, and Docker, which made it available both to Flutter developers already using Dart tooling and to developers who prefer system package managers.

The project also links to Flutter Sidekick, a related graphical companion from the same author, reflecting the split between a scriptable CLI for CI and project work and a friendlier desktop surface for some users.

### 使用方式

Typical usage is to run `fvm use` in a Flutter project, commit the `.fvmrc` file, and invoke `fvm flutter` or `fvm dart` so commands run against the configured SDK. Official docs describe `.fvmrc` as the project config file and `.fvm/flutter_sdk` as the project symlink to the cached SDK.

For package maintainers, FVM is notable because it coordinates a language runtime, project-local metadata, IDE settings, shell commands, and CI behavior without replacing Flutter itself.

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

FVM is a clean example of a language-specific version manager becoming packaging infrastructure. Its value is not the Flutter SDK download alone, but the reproducible handoff between a project's version file, developer shell commands, IDE configuration, and automated builds.

The 3.x and 4.x changelog entries are especially interesting for package maintainers because they document migration pressure around config files, git cache size, forked SDKs, prebuilt binaries, and package-manager deployment.

### 时间线

- 2019: Public GitHub repository created.
- 2019: Package first published on pub.dev.
- 2020: 1.x releases published on GitHub.
- 2023: 3.x series uses `.fvmrc` while keeping legacy `.fvm/fvm_config.json` compatibility.
- 2025: 4.0.0 adds custom or forked Flutter SDK repository support and Melos integration.
- 2026: 4.1.x releases focus on safer CI behavior and leaner git cache handling.

### Related projects

- FVM manages the Flutter SDK and Dart tooling rather than replacing them.
- Flutter Sidekick is a related GUI project linked from the FVM README.
- Melos integration matters for Dart and Flutter monorepos.

### 来源

- <https://api.github.com/repos/leoafarias/fvm>
- <https://fvm.app/documentation/getting-started/configuration>
- <https://github.com/leoafarias/fvm>
- <https://pub.dev/packages/fvm/changelog>
- <https://raw.githubusercontent.com/leoafarias/fvm/main/CHANGELOG.md>
- <https://raw.githubusercontent.com/leoafarias/fvm/main/README.md>
- <https://raw.githubusercontent.com/leoafarias/fvm/main/docs/pages/documentation/getting-started/configuration.mdx>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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: .fvmrc
## 其他软件包管理器记录

- Nix - fvm: normalized package name match | nixpkgs package indexes: pkgs/by-name/fv/fvm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - fvm - 4.1.2-1: normalized package name match | Arch Linux sync databases: fvm from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Flutter Version Management: A simple CLI to manage Flutter SDK versions. | https://fvm.app
- MacPorts - fvm: normalized package name match | MacPorts ports tree: devel/fvm/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - fvm: normalized package name match | Chocolatey community package catalog: fvm from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','fusioninventory-agent'
- Scoop - extras/fvm: normalized package name match | Scoop official bucket manifest trees: bucket/fvm.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1


## Combined YAML source

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