# 使用 Homebrew, pacman 安装 odinfmt

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

## 安装

```sh
sudo av install brew:odinfmt
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install odinfmt
```

  证据: local Homebrew formula metadata

### Linux

- pacman (92%):

```sh
sudo pacman -S odinfmt
```

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

## 软件包事实

- **软件包键:** brew:odinfmt
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/odinfmt>
- **版本:** 2026-05
- **来源摘要:** Formatter for The Odin Programming Language
- **主页:** <https://github.com/DanielGavin/ols>
- **仓库:** <https://github.com/DanielGavin/ols>
- **上游文档:** <https://github.com/DanielGavin/ols>
- **许可证:** MIT
- **源码归档:** <https://github.com/DanielGavin/ols/archive/refs/tags/dev-2026-05.tar.gz>
- **最后更新:** 2026-05-07T10:04:08Z
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- odinfmt (cli)
- odinfmt (别名)

## 构建依赖

- odin

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 2026-05
- 管理器更新时间: 2026-05-07
- 本地数据: OK
- 上游仓库: https://github.com/DanielGavin/ols
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

odinfmt is the source formatter associated with OLS, the Odin language server project. Homebrew packages it as a standalone executable even though upstream development lives in Daniel Gavin's `ols` repository.

### 项目历史

The OLS repository was created on November 3, 2020 as editor tooling for Odin. Its README describes the project as a language server intended to stay aligned with the master branch of Odin, which explains why formatter packaging is tied to fast-moving Odin tooling rather than a separate formatting standard project.

The official Odin showcase page for OLS, dated July 2, 2023, describes editor support and the implementation goal of fast completion and go-to-definition, with additional features layered around that core. odinfmt fits into the same practical-tooling layer: keep Odin code mechanically consistent while the language evolves.

### 采用历史

Adoption follows Odin's editor ecosystem rather than broad standalone popularity. The OLS README lists clients including VS Code, Sublime, Vim, Neovim, Emacs, Helix, and Micro, and Homebrew and Arch package odinfmt for users who want formatting without building the repository themselves.

On July 1, 2026, the GitHub repository API reported 1,048 stars and 163 forks for OLS, a useful signal that the language-server-and-formatter toolchain has become part of the working Odin developer setup.

### 使用方式

Developers use `odinfmt` to format Odin source files and can control style options through `odinfmt.json`. The OLS README documents options such as tab handling, tab width, brace style, case indentation, line endings, and import sorting.

Because OLS tracks Odin master, odinfmt is most useful for developers working near the language's development edge, where editor tooling and formatter behavior need to follow syntax and style changes quickly.

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

The package is a neat example of a subtool split out of a larger upstream repository: the Homebrew formula exposes only the formatter while pointing to the language-server source tree. That makes packaging metadata more precise than upstream branding, which is exactly the kind of distinction package indexes need to preserve.

For package managers, odinfmt also shows the cost of immature language ecosystems: formatter behavior, editor integration, and compiler syntax can all move together, so packagers must decide whether to follow snapshots, development tags, or source builds.

### 时间线

- November 3, 2020: The OLS GitHub repository was created.
- July 2, 2023: Odin's official showcase published a page for OLS, describing its role in editor support.
- May 2026: Arch Linux packaged odinfmt from the OLS base package, and Homebrew listed odinfmt as a standalone formula for the Odin formatter.

### Related projects

- odinfmt is directly related to Odin and OLS. It is also adjacent to Odin editor extensions because language-server setup, completion, go-to-definition, and formatting are usually installed together.

### 来源

- <https://api.github.com/repos/DanielGavin/ols>
- <https://archlinux.org/packages/extra/x86_64/odinfmt/>
- <https://formulae.brew.sh/formula/odinfmt>
- <https://github.com/DanielGavin/ols>
- <https://odin-lang.org/showcase/ols/>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation 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: odinfmt.json
## 源数据库详情

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

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

- pacman - odinfmt - dev_2026_05-1: normalized package name match | Arch Linux sync databases: odinfmt from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Source code formatter for Odin | https://github.com/DanielGavin/ols


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control 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.
- [odin](https://www.automicvault.com/zh-hans/pkg/brew/odin/) - Build dependency declared by Homebrew.
- [ols](https://www.automicvault.com/zh-hans/pkg/brew/ols/) - Shares the same upstream source repository.
- [elm-format](https://www.automicvault.com/zh-hans/pkg/brew/elm-format/) - Shares av.db curated category or tags: cli, developer-tool, developer-tools, formatter.
- [gofumpt](https://www.automicvault.com/zh-hans/pkg/brew/gofumpt/) - Shares av.db curated category or tags: cli, developer-tools, formatter.
- [goimports](https://www.automicvault.com/zh-hans/pkg/brew/goimports/) - Shares av.db curated category or tags: cli, developer-tools, formatter.
- [jsonfmt](https://www.automicvault.com/zh-hans/pkg/brew/jsonfmt/) - Shares av.db curated category or tags: cli, developer-tools, formatter.
- [jsonpp](https://www.automicvault.com/zh-hans/pkg/brew/jsonpp/) - Shares av.db curated category or tags: cli, developer-tools, formatter.
- [pgformatter](https://www.automicvault.com/zh-hans/pkg/brew/pgformatter/) - Shares av.db curated category or tags: cli, developer-tools, formatter.
- [rubyfmt](https://www.automicvault.com/zh-hans/pkg/brew/rubyfmt/) - Shares av.db curated category or tags: cli, developer-tools, formatter.
- [smlfmt](https://www.automicvault.com/zh-hans/pkg/brew/smlfmt/) - Shares av.db curated category or tags: cli, developer-tools, formatter.
- [nixfmt](https://www.automicvault.com/zh-hans/pkg/brew/nixfmt/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tool, developer-tools, formatter.
- [dcd](https://www.automicvault.com/zh-hans/pkg/brew/dcd/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tool, developer-tools, language.

## Combined YAML source

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