# 使用 Homebrew, MacPorts 安装 nfd2nfc

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

## 安装

```sh
sudo av install brew:nfd2nfc
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install nfd2nfc
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install nfd2nfc
```

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

## 软件包事实

- **软件包键:** brew:nfd2nfc
- **软件包管理器:** Homebrew
- **版本:** 2.1.0
- **来源摘要:** Convert filesystem entry names from NFD to NFC for cross-platform compatibility
- **主页:** <https://github.com/elgar328/nfd2nfc>
- **仓库:** <https://github.com/elgar328/nfd2nfc>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- nfd2nfc (别名)
- nfd2nfc-watcher (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

nfd2nfc is a macOS-focused filename-normalization utility. It watches directories and converts filesystem entry names from Unicode NFD to NFC so files shared from macOS behave better on Windows, Linux, Git, cloud sync, archives, and other tools that expect composed Unicode names.

### 项目历史

The project documents the root problem plainly: macOS stores filenames in decomposed NFD form, while Windows and Linux commonly use NFC. nfd2nfc wraps that conversion in an interactive TUI, scriptable CLI, and background watcher service. The README says it moved from the maintainer's personal tap to homebrew-core starting with v2.0.7.

### 采用历史

Adoption is small but precise: it serves users who regularly move filenames with Hangul, accented Latin characters, Japanese kana, or other composed characters across platforms. The Homebrew API generated on 2026-07-01 reported 144 installs-on-request in the preceding 365 days, plus 7 HEAD installs.

### 使用方式

The usual package-nerd path is `brew install nfd2nfc`, run `nfd2nfc` for the TUI, register watch paths, and let `nfd2nfc-watcher` convert new or modified filenames. For scripting, the README documents commands such as `nfd2nfc status --json`, `nfd2nfc convert <path> --mode recursive --target nfc --dry-run --json`, and watcher start/stop/restart commands.

Because it is a macOS watcher that renames files, permissions matter: upstream documents Full Disk Access for the watcher binary and notes that application-level NFD conversion by browsers, email, cloud storage, messaging apps, and archive tools remains outside nfd2nfc's scope.

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

This is a classic small macOS packaging win: a narrow filesystem annoyance, a Homebrew formula, a LaunchAgent-backed watcher, JSON-friendly CLI output, and no cross-platform ambition beyond fixing the local source of bad filenames.

### 时间线

- v2.0.7: README migration notes say the project moved from the personal tap to homebrew-core.
- 2026-07-01: Homebrew formula API generated data for nfd2nfc 2.1.0.

### Related projects

- Unicode normalization
- macOS LaunchAgent
- Homebrew

### 来源

- <https://formulae.brew.sh/api/formula/nfd2nfc.json>
- <https://github.com/elgar328/nfd2nfc>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- MacPorts - nfd2nfc: normalized package name match | MacPorts ports tree: sysutils/nfd2nfc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/nfd2nfc.yml](https://github.com/mxcl/pkgdb/blob/main/combined/nfd2nfc.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
