# 使用 Homebrew, MacPorts, Nix, scoop, winget 安装 fpm

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

## 安装

```sh
sudo av install brew:fpm
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install fpm
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fpm
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#fpm
```

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

### Windows

- Scoop (92%):

```sh
scoop install extras/fpm
```

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

- winget (92%):

```sh
winget install --id FortranLang.fpm -e
```

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

## 软件包事实

- **软件包键:** brew:fpm
- **软件包管理器:** Homebrew
- **版本:** 0.13.0
- **来源摘要:** Package manager and build system for Fortran
- **主页:** <https://fpm.fortran-lang.org>
- **仓库:** <https://github.com/fortran-lang/fpm>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- fpm (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Fortran Package Manager, usually called fpm, is the Fortran-lang community's package manager and build system for modern Fortran projects. Its official README says the tool aims to improve Fortran programmer experience by making projects easier to build, test, run, and distribute as dependencies.

### 项目历史

fpm was developed inside the Fortran-lang organization as a Cargo-inspired tool for Fortran. The official README explicitly says its user interface is modeled after Rust's Cargo and that its long-term vision is to nurture a modern Fortran applications and libraries ecosystem.

The release history shows a rapid alpha sequence in 2020 and 2021, followed by continuing feature releases through the 2020s. The documentation now includes a manifest reference, registry workflows, dependency forms, metapackages, compile_commands.json output, and API documentation.

### 采用历史

Official install documentation and the README describe binary downloads for Windows, macOS, and Linux, availability through conda-forge, and a Homebrew tap. The README also points users to the fpm registry for existing packages, showing the project moving beyond a build wrapper into a package ecosystem.

### 使用方式

A new package starts with fpm new, which creates a project containing fpm.toml and source directories. Common commands include fpm build, fpm run, fpm test, and fpm install, while the manifest file declares package metadata, targets, dependencies, build options, and registry dependencies.

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

fpm matters to package nerds because it gives Fortran a first-party, language-community package and build workflow in the style of Cargo. It standardizes the fpm.toml manifest, dependency declarations, project layouts, test/example targets, registry use, and cross-platform binary distribution for a language that historically relied on ad hoc Makefiles and compiler-specific build recipes.

### 时间线

- 2020: Early v0.1 alpha releases appeared on GitHub.
- 2021: v0.5.0 was published and a rolling current release tag was introduced.
- 2022: v0.6.0 and v0.7.0 continued the alpha-era package manager and build-system work.
- 2023: v0.8.x and v0.9.0 releases expanded the tool before the later 0.10 series.
- 2025: v0.12.0 was published; current docs describe registry dependencies and manifest features including shared/static library target types.
- 2026: v0.13.0 was published.

### Related projects

- The README relates fpm to Rust Cargo as a UI model, to the fpm-registry as the package source, to fortran-lang/homebrew-fortran for Homebrew installation, and explicitly distinguishes it from Jordan Sissel's unrelated fpm packaging tool.

### 来源

- <https://api.github.com/repos/fortran-lang/fpm/releases?per_page=20>
- <https://fpm.fortran-lang.org/>
- <https://fpm.fortran-lang.org/spec/manifest.html>
- <https://raw.githubusercontent.com/fortran-lang/fpm/main/README.md>


## 安全说明

generalized runtime or code generation signal. infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- generalized runtime or code generation signal
- 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: fpm.toml
## 其他软件包管理器记录

- Nix - fpm: normalized package name match | nixpkgs package indexes: fpm from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- MacPorts - fpm: normalized package name match | MacPorts ports tree: devel/fpm/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - extras/fpm: normalized package name match | Scoop official bucket manifest trees: bucket/fpm.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1
- winget - FortranLang.fpm: normalized package name match | Windows Package Manager source index: FortranLang.fpm from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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