# 使用 Homebrew, Nix 安装 infat

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

## 安装

```sh
sudo av install brew:infat
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install infat
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#infat
```

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

## 软件包事实

- **软件包键:** brew:infat
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/infat>
- **版本:** 3.1.2
- **来源摘要:** Tool to set default openers for file formats and url schemes on macOS
- **主页:** <https://github.com/philocalyst/infat>
- **仓库:** <https://github.com/philocalyst/infat>
- **上游文档:** <https://github.com/philocalyst/infat#readme>
- **许可证:** BlueOak-1.0.0
- **源码归档:** <https://github.com/philocalyst/infat/archive/refs/tags/v3.1.2.tar.gz>
- **最后更新:** 2026-05-12T09:42:18+01:00
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- infat (cli)
- infat (别名)

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

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

infat is a macOS-native CLI for declaratively managing file-extension, Uniform Type Identifier, and URL-scheme opener associations. It turns a Finder preference chore into a scriptable dotfiles-style command.

### 项目历史

The project appeared publicly in 2025 and moved quickly through alpha, beta, and 1.x releases. The README describes it as a single-binary macOS-first tool built around NSWorkspace, Launch Services, and UTType, with TOML configuration for extensions, types, and schemes.

The release notes show a notable rewrite at version 3.0.0 in September 2025, moving the implementation to Rust and adding URL-scheme inspection support. The README later notes that GitHub became a mirror while development management moved to Tangled.

### 采用历史

Adoption is narrow but natural for the Homebrew audience: infat is aimed at macOS power users, administrators, and dotfile maintainers who want repeatable default-app settings across machines. The input package metadata shows Homebrew and Nix packaging.

### 使用方式

Users run infat info to inspect openers, infat set to bind an app to an extension, type, or URL scheme, or provide a TOML config at $XDG_CONFIG_HOME/infat/config.toml. That makes it useful in setup scripts for default browsers, editors, image viewers, mail handlers, and other app-association preferences.

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

infat is interesting as a small package because it wraps a very platform-specific macOS preference surface in a package-manager-friendly CLI. It sits beside older tools such as duti, but adds URL schemes and a declarative TOML workflow that fits dotfiles culture.

### 时间线

- 2025: Public repository created for infat.
- 2025: Alpha, beta, and 1.0 releases published in March and April.
- 2025: Version 3.0.0 release notes describe a complete rewrite to Rust.
- 2026: Version 3.1 release published.

### Related projects

- duti is named by the README as an inspiration. macOS Launch Services, NSWorkspace, and Uniform Type Identifiers are the platform APIs that define the problem space. Nix and Homebrew are the package-manager channels reflected in the input metadata.

### 来源

- <https://github.com/philocalyst/infat>
- <https://github.com/philocalyst/infat/blob/main/CHANGELOG.md>
- <https://github.com/philocalyst/infat/releases>


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

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

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

- Nix - infat: normalized package name match | nixpkgs package indexes: pkgs/by-name/in/infat/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [defaultbrowser](https://www.automicvault.com/zh-hans/pkg/brew/defaultbrowser/) - Shares av.db curated category or tags: cli, default-apps, macos, system.
- [dark-mode](https://www.automicvault.com/zh-hans/pkg/brew/dark-mode/) - Shares av.db curated category or tags: cli, macos, system.
- [devcockpit](https://www.automicvault.com/zh-hans/pkg/brew/devcockpit/) - Shares av.db curated category or tags: cli, macos, system.
- [duti](https://www.automicvault.com/zh-hans/pkg/brew/duti/) - Shares av.db curated category or tags: cli, default-apps, macos, system, url-schemes.
- [fileicon](https://www.automicvault.com/zh-hans/pkg/brew/fileicon/) - Shares av.db curated category or tags: cli, macos, system.
- [launch](https://www.automicvault.com/zh-hans/pkg/brew/launch/) - Shares av.db curated category or tags: cli, macos, system.
- [m-cli](https://www.automicvault.com/zh-hans/pkg/brew/m-cli/) - Shares av.db curated category or tags: cli, macos, system.
- [mas](https://www.automicvault.com/zh-hans/pkg/brew/mas/) - Shares av.db curated category or tags: cli, macos, system.

## Combined YAML source

View the package source record on GitHub. [combined/infat.yml](https://github.com/automic-vault/db/blob/main/combined/infat.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- 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
