# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/fpm>
- **版本:** 0.13.0
- **来源摘要:** Package manager and build system for Fortran
- **主页:** <https://fpm.fortran-lang.org>
- **仓库:** <https://github.com/fortran-lang/fpm>
- **上游文档:** <https://fpm.fortran-lang.org/>
- **许可证:** MIT
- **源码归档:** <https://github.com/fortran-lang/fpm/releases/download/v0.13.0/fpm-0.13.0.F90>
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- fpm (cli)
- fpm (别名)

## 依赖

- gcc

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.13.0
- 本地数据: OK
- 上游仓库: https://github.com/fortran-lang/fpm
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

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
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** fpm
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- 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


## 相关链接

- [Package publisher tools](https://www.automicvault.com/zh-hans/pkg/package-publishers/) - Belongs to a package publishing or registry command family.
- [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.
- [gcc](https://www.automicvault.com/zh-hans/pkg/brew/gcc/) - Runtime dependency declared by Homebrew.
- [bmake](https://www.automicvault.com/zh-hans/pkg/brew/bmake/) - Shares av.db curated category or tags: build-system, build-tools, cli, developer-tools.
- [cmake](https://www.automicvault.com/zh-hans/pkg/brew/cmake/) - Shares av.db curated category or tags: build-system, build-tools, cli, developer-tools.
- [dub](https://www.automicvault.com/zh-hans/pkg/brew/dub/) - Shares av.db curated category or tags: build-tools, cli, developer-tools, package-manager.
- [fobis](https://www.automicvault.com/zh-hans/pkg/brew/fobis/) - Shares av.db curated category or tags: build-tools, cli, developer-tools, fortran.
- [fypp](https://www.automicvault.com/zh-hans/pkg/brew/fypp/) - Shares av.db curated category or tags: build-tools, cli, developer-tools, fortran.
- [imake](https://www.automicvault.com/zh-hans/pkg/brew/imake/) - Shares av.db curated category or tags: build-system, build-tools, cli, developer-tools.
- [melange](https://www.automicvault.com/zh-hans/pkg/brew/melange/) - Shares av.db curated category or tags: build-system, build-tools, cli, developer-tools.
- [nx](https://www.automicvault.com/zh-hans/pkg/brew/nx/) - Shares av.db curated category or tags: build-system, build-tools, cli, developer-tools.
- [opam](https://www.automicvault.com/zh-hans/pkg/brew/opam/) - Local metadata places this package in an adjacent workflow. Shared terms: build, build-tools, cli, developer, developer-tools.
- [cabin](https://www.automicvault.com/zh-hans/pkg/brew/cabin/) - Local metadata places this package in an adjacent workflow. Shared terms: build, build-system, cli, developer, developer-tools.

## Combined YAML source

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